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

How to have persistence login in latest version 2.0.1? #118

Open
zenith6495 opened this issue Sep 5, 2023 · 2 comments
Open

How to have persistence login in latest version 2.0.1? #118

zenith6495 opened this issue Sep 5, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@zenith6495
Copy link

Hi, how can I achieve persistence login in version 2.0.1? Meaning user login once, the library should return msalInstance every time the page loads. It was working fine in version 1.15.0.

I need msalInstance to logout. In 2.0.1, there's no way I can get msalInstance after page is refreshed/relaunched. I'm genuinely surprised why no one is talking about this issue as it's such an important one. Appreciate if someone can shed some light on this issue. I'm afraid I'm the one who doesn't do it right.

@zenith6495 zenith6495 added the bug Something isn't working label Sep 5, 2023
@Mohamed-Gibreel
Copy link

Hi @zenith6495 I agree on this, I am also facing this issue currently and trying to figure out if there is a solution to this. Have you been able to find a solution yet ?

@alexandrtovmach
Copy link
Owner

NOTE: Microsoft team created their @azure/msal-react and it can be used as a good official alternative to react-microsoft-login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants