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

In App Browser not opening after logout #38

Open
razmans opened this issue Feb 22, 2024 · 3 comments
Open

In App Browser not opening after logout #38

razmans opened this issue Feb 22, 2024 · 3 comments

Comments

@razmans
Copy link

razmans commented Feb 22, 2024

I am building an Android application that would enable the user to log in and log out.

The user logs in- No problem
The user logs out- No problem
The user tries to log in again-> The in app browser is not opening. Do you know what I am doing wrong, I have added all the necessary credentials.

My Log In function:

   return new Promise((resolve, reject) => {
     const options: LoginOptions = {
       ...this.configData.mobileConfig
     };

     try {
       MsAuthPlugin.login(options).then((resultLogin: LoginResponse) => {
         resolve(resultLogin);
       });
     } catch (err) {
       reject(err);
     }
   });
 }```

My log out function
```public async logoutUser(): Promise<void> {
   await MsAuthPlugin.logout({
     clientId: this.configData.adConfig.clientId,
     tenant: this.configData.mobileConfig.tenant,
     domainHint: this.configData.mobileConfig.domainHint,
     keyHash: this.configData.mobileConfig.keyHash,
   });
 }```

@dandamoodi
Copy link

dandamoodi commented Mar 11, 2024

I am facing the same issue too.. @razmans is it resolved ?

@razmans
Copy link
Author

razmans commented Mar 19, 2024

I am facing the same issue too.. @razmans is it resolved ?

No, am not able to resolve this. I just pushed a popup to force the user to restart the app.

@tripurarisingh1994
Copy link

Hi @razmans,

I hope this message finds you well. I recently encountered an issue with the app where it functions correctly for about 24 hours after installation, but then I receive an error message stating "Unable to fetch access token." Reinstalling the app again it is working, but the problem recurs again after 24 hours.

Have you experienced this issue as well? We've been dealing with this for some time now and any insights you could provide on how you might have resolved it would be greatly appreciated.

Thank you in advance for your help!

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

3 participants