Merge pull request #1422 from spotify/mob/auth-std-profile

auth: refactor to include backstage identity and use more explicit types
This commit is contained in:
Patrik Oldsberg
2020-06-24 10:40:28 +02:00
committed by GitHub
30 changed files with 618 additions and 406 deletions
+1
View File
@@ -22,6 +22,7 @@ builder.add(errorApiRef, new ErrorAlerter(alertApi, new ErrorApiForwarder()));
builder.add(identityApiRef, {
getUserId: () => 'guest',
getProfile: () => ({ email: 'guest@example.com' }),
getIdToken: () => undefined,
logout: async () => {},
});