Merged develop into feat/SW-266-seo-loyalty-pages
This commit is contained in:
@@ -33,7 +33,7 @@ import type {
|
||||
async function getVerifiedUser({ session }: { session: Session }) {
|
||||
const now = Date.now()
|
||||
|
||||
if (session.token.expires_at < now) {
|
||||
if (session.token.expires_at && session.token.expires_at < now) {
|
||||
return { error: true, cause: "token_expired" } as const
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user