diff --git a/frontend/app/lib/actions.ts b/frontend/app/lib/actions.ts index 86b47e3c..52d0d237 100644 --- a/frontend/app/lib/actions.ts +++ b/frontend/app/lib/actions.ts @@ -22,6 +22,7 @@ import { export async function signOut() { cookies()?.delete("token"); destroySession(); + revalidatePath("/", "layout"); redirect("/"); } @@ -55,6 +56,7 @@ export async function authenticate( email: formData.get("email") as string, password: formData.get("password") as string, }); + revalidatePath("/", "layout"); redirect("/"); } catch (error) { if ((error as Error).message.includes("Authentication failed")) {