diff --git a/auth.ts b/auth.ts index 94ee955..ee385b3 100644 --- a/auth.ts +++ b/auth.ts @@ -72,8 +72,9 @@ export const { if (!exisingUser) return token - // ts-ignore - token.isOauth = Boolean(exisingUser?.isOauth) + token.isOauth = exisingUser.hasOwnProperty('isOauth') + ? Boolean(exisingUser.isOauth) + : false token.provider = exisingUser.provider token.role = exisingUser.role token.profileId = exisingUser.profileId