fix: Use sub instead of email for google entity ID (#9949)
This commit is contained in:
@@ -142,8 +142,7 @@ export class GoogleAuthService extends AbstractAuthModuleProvider {
|
||||
)
|
||||
}
|
||||
|
||||
// TODO: We should probably use something else than email here, like the `sub` field (which is more constant than the email)
|
||||
const entity_id = payload.email
|
||||
const entity_id = payload.sub
|
||||
const userMetadata = {
|
||||
name: payload.name,
|
||||
picture: payload.picture,
|
||||
|
||||
Reference in New Issue
Block a user