return null instead of undefined if no user

This commit is contained in:
Erin 2023-11-12 17:49:33 -05:00
parent e8d7fff771
commit 0be14731f0

View file

@ -15,5 +15,5 @@ export async function getUserFromSessionID (sessionID: string | undefined) {
},
})
: null;
return session?.authMethod.user;
return session?.authMethod.user ?? null;
}