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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user