check callback from lichess server

This commit is contained in:
2026-06-07 22:44:31 +02:00
parent 585bb5549f
commit 0888df153f
9 changed files with 154 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
import { useEffect } from "react";
import { useLichess } from "#/hooks/useLichess.ts";
interface IProps {
code: string;
}
export const useLichessCallback = ({ code }: IProps) => {
const { lichessTokenVerification } = useLichess();
useEffect(() => {
if (!code) return;
const response = lichessTokenVerification({ code });
console.log("Response:", response);
}, [code, lichessTokenVerification]);
};