fix(SW-2210): Checking for session inside MyPagesMenu to sync session state
This commit is contained in:
committed by
Michael Zetterberg
parent
7b76e351d9
commit
d827bf04d0
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user