return null instead of undefined if no user
This commit is contained in:
parent
e8d7fff771
commit
0be14731f0
|
@ -15,5 +15,5 @@ export async function getUserFromSessionID (sessionID: string | undefined) {
|
|||
},
|
||||
})
|
||||
: null;
|
||||
return session?.authMethod.user;
|
||||
return session?.authMethod.user ?? null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue