Merge pull request #8945 from backstage/identity/reliable-methods

[Identity] Wait for implementation instead of throwing
This commit is contained in:
Patrik Oldsberg
2022-01-24 17:09:25 +01:00
committed by GitHub
2 changed files with 29 additions and 24 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/core-app-api': patch
---
Asynchronous methods on the identity API can now reliably be called at any time, including early in the bootstrap process or prior to successful sign-in.
Previously in such situations, a `Tried to access IdentityApi before app was loaded` error would be thrown. Now, those methods will wait and resolve eventually (as soon as a concrete identity API is provided).