diff --git a/auth.ts b/auth.ts index e373e10..2db7f5c 100644 --- a/auth.ts +++ b/auth.ts @@ -72,7 +72,7 @@ export const { if (!exisingUser) return token - token.isOauth = Boolean(exisingUser.isOauth) + token.isOauth = Boolean(exisingUser?.isOauth) token.provider = exisingUser.provider token.role = exisingUser.role token.profileId = exisingUser.profileId