This commit is contained in:
parent
39eb66a512
commit
433013d624
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue