mirror of
https://github.com/tale/headplane.git
synced 2026-08-07 21:03:13 +00:00
fix display name
This commit is contained in:
committed by
Aarnav Tale
parent
f7547a4c62
commit
ad469129bc
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user