You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once logged in, if a user reloads the SPA either by refreshing the page or navigating via the address bar, the login context is "lost", and the user must trigger another login. At least for my Azure AD provider the subsequent login redirects immediately without the need for interaction.
I wonder if it would it be possible to store the users access_token and expires in SessionStorage? That way when the context is configured, it could first check those stored values and attempt a silent login flow to obtain a new access, refresh, and id token. I believe the Microsoft Graph Toolkit components function in this way to persist the login state across page reloads.
What are your thoughts?
The text was updated successfully, but these errors were encountered:
At least for my Azure AD provider the subsequent login redirects immediately without the need for interaction.
And this is how it should be. Access tokens should not be stored. They are actually only active in a single session (tab). Not even shared with other tabs.
There was a discussion on #1 about the same topic, which goes into a bit more detail. Maybe it pin it 😁
Once logged in, if a user reloads the SPA either by refreshing the page or navigating via the address bar, the login context is "lost", and the user must trigger another login. At least for my Azure AD provider the subsequent login redirects immediately without the need for interaction.
I wonder if it would it be possible to store the users
access_token
andexpires
in SessionStorage? That way when the context is configured, it could first check those stored values and attempt a silent login flow to obtain a new access, refresh, and id token. I believe the Microsoft Graph Toolkit components function in this way to persist the login state across page reloads.What are your thoughts?
The text was updated successfully, but these errors were encountered: