isOauth property issue on server
This commit is contained in:
5
auth.ts
5
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
|
||||
|
||||
Reference in New Issue
Block a user