fix(SW-2210): Checking for session inside MyPagesMenu to sync session state

This commit is contained in:
Erik Tiekstra
2025-04-16 13:05:57 +02:00
committed by Michael Zetterberg
parent 7b76e351d9
commit d827bf04d0
3 changed files with 15 additions and 3 deletions

View File

@@ -4,7 +4,6 @@ import type { Session } from "next-auth"
export function isValidSession(session: Session | null): session is Session {
if (!session) {
console.log("No session available (user not authenticated).")
return false
}
if (session.error) {