From 95f31834315bae211b66a8ae70787e38dc5b3a69 Mon Sep 17 00:00:00 2001 From: Yevhen Odynets Date: Wed, 5 Feb 2025 09:04:33 +0200 Subject: [PATCH] auth file fix --- auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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