mirror of
https://github.com/PeterMaquiran/tvone-api.git
synced 2026-04-18 08:17:52 +00:00
fix picture link
This commit is contained in:
@@ -31,7 +31,7 @@ export class KeycloakStrategy extends PassportStrategy(Strategy, "keycloak") {
|
||||
name: payload.name,
|
||||
// Google profile image is usually in 'picture'
|
||||
email_verified: payload.email_verified,
|
||||
picture: payload.picture || `https://profiles.google.com/s2/photos/profile/${payload.email}`,
|
||||
picture: payload.picture,
|
||||
roles: payload.realm_access?.roles || [],
|
||||
// Keep raw for debugging other custom claims
|
||||
raw: payload,
|
||||
|
||||
Reference in New Issue
Block a user