isOauth property issue on server

This commit is contained in:
2025-02-05 09:15:29 +02:00
parent 6f28f8a801
commit b8f50d80c1

View File

@@ -72,8 +72,9 @@ export const {
if (!exisingUser) return token if (!exisingUser) return token
// ts-ignore token.isOauth = exisingUser.hasOwnProperty('isOauth')
token.isOauth = Boolean(exisingUser?.isOauth) ? Boolean(exisingUser.isOauth)
: false
token.provider = exisingUser.provider token.provider = exisingUser.provider
token.role = exisingUser.role token.role = exisingUser.role
token.profileId = exisingUser.profileId token.profileId = exisingUser.profileId