Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access token is not getting refreshed #257

Open
nairmanu opened this issue Jul 31, 2020 · 0 comments
Open

Access token is not getting refreshed #257

nairmanu opened this issue Jul 31, 2020 · 0 comments

Comments

@nairmanu
Copy link

Library versions

  • react-aad-msal: 2.3.5
  • msal: 1.3.2

Describe the bug
Access token is not getting refreshed when user is already logged in.

The processLogin() refreshes the IdToken when getAccount() is successful but does not perform a refresh of access token before triggering LoginSuccess event. This causes any subsequent API calls that requires the access token to fail without a manual user login process. Is it intentional to not renew the access token?

Expected behavior
when token is renewed, both id token and access token should be renewed before LoginSuccess event is triggered. If one of them fails, login should be considered a failure.

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version 84.0.4147.105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant