From b8f50d80c18a4edb16d8c721741c22331db0eb8a Mon Sep 17 00:00:00 2001 From: Yevhen Odynets Date: Wed, 5 Feb 2025 09:15:29 +0200 Subject: [PATCH] isOauth property issue on server --- auth.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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