fix: revert changes in github provider
Signed-off-by: Tom Opdebeeck <tom.opdebeeck@studiohyperdrive.be>
This commit is contained in:
@@ -79,7 +79,7 @@ export class GithubAuthProvider implements OAuthHandlers {
|
||||
const profile = makeProfileInfo(
|
||||
{
|
||||
...fullProfile,
|
||||
id: fullProfile.id,
|
||||
id: fullProfile.username || fullProfile.id,
|
||||
displayName:
|
||||
fullProfile.displayName || fullProfile.username || fullProfile.id,
|
||||
},
|
||||
@@ -95,7 +95,7 @@ export class GithubAuthProvider implements OAuthHandlers {
|
||||
expiresInSeconds: params.expires_in,
|
||||
},
|
||||
backstageIdentity: {
|
||||
id: fullProfile.id,
|
||||
id: fullProfile.username || fullProfile.id,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user