fix: revert changes in github provider

Signed-off-by: Tom Opdebeeck <tom.opdebeeck@studiohyperdrive.be>
This commit is contained in:
Tom Opdebeeck
2021-08-13 11:35:30 +02:00
parent 3a0fbdea15
commit c097e8893b
@@ -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,
},
},
};