This commit is contained in:
hailin 2025-03-12 11:38:43 +08:00
parent 39eb66a512
commit 433013d624
2 changed files with 3 additions and 21 deletions

View File

@ -59,7 +59,7 @@ export default function SignInPage({ params: { locale } }: { params: { locale: s
emailValue={email}
passwordValue={password}
/>
<p className="hidden mt-4 text-center text-sm text-md text-black/50 ">
<p className="mt-4 text-center text-sm text-md text-black/50 ">
<Link href="/auth/sign-up" className="ml-2 underline text-black hover:underline" onClick={(e) => {
e.preventDefault();
toast.success('coming soon')

View File

@ -23,27 +23,9 @@ export const EmailCode: React.FC<Props> = ({ setError }) => {
const verifyCode = async (otp: string) => {
console.log("verifying", otp);
// if (!signInLoaded || typeof otp !== "string") {
// return null;
// }
setIsLoading(true);
// await signIn
// .attemptFirstFactor({
// strategy: "email_code",
// code: otp,
// })
// .then(async (result) => {
// if (result.status === "complete" && result.createdSessionId) {
// toast.success("Signed in", {
// description: "redirecting...",
// });
// await setActive({ session: result.createdSessionId });
// router.push("/app");
// }
// })
// .catch((err) => {
// setError(err.errors.at(0)?.longMessage ?? "Unknown error, pleae contact support@unkey.dev");
// });
setIsLoading(false);
};