Closed GeraltRivvia closed 2 years ago
Hello. Just bumping this up.
Hi,
sorry, I don't have any experience with B2C, but what I can surely state - it is not an library issue, but some setting issue or just a standard behavior of Azure for this business case.
As I understood, Azure don't provide a refresh token in your case, so you can not update access token and getting null back. It could be two reasons for this:
I both cases the only solution is to study thoroughly the documentation or ask Azure support for help.
I will close the issue as not related to the library directly. Please feel free to reopen it, if your will find out that the case is caused by some wrong or missing functionality. Thanks!
I am using the code below to login and authenticate with B2C and it works as expected.
However, when I try to refresh the token using the acquireTokenSilent method, the token only gets a null value. The same code works for B2B authentication though since a new token is being generated.
The method only accepts the scope and the userId as parameters and maybe it is returning null since the token endpoint for B2C has the policy as an additional parameter.
I tried looking for the refresh token to pass this manually to the token endpoint using a separate fetch but it is not available on the token attributes/properties when I looked and as mentioned on the past threads, the refreshtoken is not available.
Is there a way around this? Or maybe I am just missing something?
Thank you.