I can log out as follows: At login time, I store the token in localStorage and in the logout method, I did as follows:
//LOGOUT GOOGLE
const token = await AsyncStorage.getItem("@ellot:googleAccessToken");
if (token) {
try {
await AuthSession.revokeAsync({ token }, { revocationEndpoint: 'https://oauth2.googleapis.com/revoke' });
await AsyncStorage.removeItem("@my:googleAccessToken");
} catch (error) {
console.log('ERROR XXX', error)
}
}
//LOGOUT GOOGLE
Answer from Edinho Rodrigues on Stack OverflowI'm using Azure B2C to authenticate, and once the user logs in B2C adds a cookie to the system browser.
The problem I'm having, after the users logs out of the app, and goes to re-login, they're automatically authenticated without being prompted for their credentials.
I'm using expo and can't seem to figure out how to fully "logout."
I've tried revokeAsync with AuthSession, as well as React Native Cookies to attempt to remove the cookie with no success.
How is this usually handled?
Any help appreciated!
» npm install expo-auth-session
Hello,
I hope someone can help with this expo issue.
I am trying to use the expo-auth-session to implement SSO with Facebook and getting the following message. Looking at the URL, it seems like it's able to retrieve the access_token from Facebook but something is throwing it off...
I saw a couple of articles on this error and they suggest to use the proxy parameter. But this field was obsolete and removed from the version i am using...
anybody has any idea what's going on??