Logout does not clear key from local storage/cache (android)
the logout call doesn't clear the key, my app uses the availability of the key for authorization, so when i call logout and go back to the login page, it just authorizes immediately
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you still think this issue is needed, reopen it again.
Same issue I have observed on Android and iOS as well. Also, trying to log out multiple times clears the key from local storage (generally after 2-3 tries)
Same issue I have observed on Android and iOS as well. Also, trying to log out multiple times clears the key from local storage (generally after 2-3 tries)
@nayanAubie Hi, I also facing same issue for iOS logout which is working fine in Android.
First time after opening the app, after await mfaAuthentication.login(); calling await mfaAuthentication.getAccessToken() is not calling.
After mfaAuthentication.logout(); of application the second time below code is running.
await mfaAuthentication.login();
String? accessToken = await mfaAuthentication.getAccessToken();
Please suggest if you resolve the issue.
@GDEVENDRAK aad_oauth is not using the native library for MSAL, instead, it is using a browser session and that is not a proper way for mobile. You can use this one if you like. (made by me) => msal_auth
I have the same issue on Flutter web. I have to log out twice that the cache is cleared properly.
I call the logout function and after that I clear the browser cache. Immediately after the logout, there are entries placed in the local storage that enables the direct login. After a second logout, these entries are deleted properly.
@GDEVENDRAK
aad_oauthis not using the native library for MSAL, instead, it is using a browser session and that is not a proper way for mobile. You can use this one if you like. (made by me) => msal_auth
ok, I need to update to MSAL in future. Coming aad_oauth I noticed I am not calling mfaAuthentication.logout(); in await. After adding await it is working fine now.
I will definitely check your package for MSAL. Thank you for the support.
I have the same issue on Flutter web. I have to log out twice that the cache is cleared properly.
I call the logout function and after that I clear the browser cache. Immediately after the logout, there are entries placed in the local storage that enables the direct login. After a second logout, these entries are deleted properly.
Hi, I noticed I am not calling mfaAuthentication.logout(); in await. After adding await it is working fine now.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you still think this issue is needed, reopen it again.
Closing this issue due to lack of activity.