Need Help with Custom App Initializer #3711
Unanswered
brandonsmith86
asked this question in
Help
Replies: 2 comments 1 reply
-
https://github.com/vinusorout/msal-angular-dynamic-configuration-sample |
Beta Was this translation helpful? Give feedback.
1 reply
-
Can anyone tell me if I would be better off creating an issue for this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having a heck of a time figuring this one out. I am currently using msal-angular v2.0, and configuring everything via APP_INITIALIZER providers (including HTTP_INTERCEPTORS). This all works great, until I try to add another APP_INITIALIZER that uses HttpClient. The purpose of this initializer is to get additional user info (by making an API call). The API call needs to have the access token included in the header (provided by MsalInterceptor). I have tried two different approaches (listed below), and both have failed. I would really appreciate any feedback that you can give.
httpClient.get()
is called: "BrowserAuthError: interaction_in_progress: Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API."Beta Was this translation helpful? Give feedback.
All reactions