diff --git a/auth.config.ts b/auth.config.ts index b5d36fc8b3..20a7c3f137 100644 --- a/auth.config.ts +++ b/auth.config.ts @@ -54,6 +54,8 @@ const refreshAccessToken = async (token: CustomJwtPayload) => { export const authConfig = { session: { strategy: "jwt", + // The session will be valid for 24 hours + maxAge: 24 * 60 * 60, }, pages: { signIn: "/sign-in", diff --git a/components/auth/auth-form.tsx b/components/auth/auth-form.tsx index 18391d44d4..de53e66f8b 100644 --- a/components/auth/auth-form.tsx +++ b/components/auth/auth-form.tsx @@ -21,7 +21,6 @@ import { authFormSchema } from "@/types"; import { NotificationIcon, ProwlerExtended } from "../icons"; import { ThemeSwitch } from "../ThemeSwitch"; import { CustomButton, CustomInput } from "../ui/custom"; -// import { AuthButton } from "./AuthButton"; export const AuthForm = ({ type }: { type: string }) => { const formSchema = authFormSchema(type); @@ -43,8 +42,6 @@ export const AuthForm = ({ type }: { type: string }) => { const [state, dispatch] = useFormState(authenticate, undefined); - console.log(isLoading, state); - useEffect(() => { if (state?.message === "Success") { router.push("/");