fix display name
This commit is contained in:
parent
f7547a4c62
commit
ad469129bc
8 changed files with 11 additions and 8 deletions
|
|
@ -132,6 +132,10 @@ function getName(user: client.UserInfoResponse, claims: client.IDToken) {
|
|||
return user.name;
|
||||
}
|
||||
|
||||
if (user.displayName) {
|
||||
return user.displayName;
|
||||
}
|
||||
|
||||
if (claims.name && typeof claims.name === 'string') {
|
||||
return claims.name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue