mirror of
https://github.com/PeterMaquiran/tvone-api.git
synced 2026-04-18 16:27:51 +00:00
fix picture link
This commit is contained in:
@@ -31,7 +31,7 @@ export class KeycloakStrategy extends PassportStrategy(Strategy, "keycloak") {
|
|||||||
name: payload.name,
|
name: payload.name,
|
||||||
// Google profile image is usually in 'picture'
|
// Google profile image is usually in 'picture'
|
||||||
email_verified: payload.email_verified,
|
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 || [],
|
roles: payload.realm_access?.roles || [],
|
||||||
// Keep raw for debugging other custom claims
|
// Keep raw for debugging other custom claims
|
||||||
raw: payload,
|
raw: payload,
|
||||||
|
|||||||
Reference in New Issue
Block a user