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 Overflow
🌐
Expo Documentation
docs.expo.dev › versions › latest › sdk › auth-session
AuthSession - Expo Documentation
If the user cancelled the authentication session by closing the browser, the result is { type: 'cancel' }.
🌐
Auth0
community.auth0.com › get help
Logout with Expo - Auth0 Community
December 1, 2020 - Hi there, I’m facing similar problems to the following unresolved issues: I’m able to log in to auth0 using the example here: https://github.com/expo/examples/tree/master/with-auth0 I’m using the following to try to log the user out await WebBrowser.openBrowserAsync( ${myAuth0Domain}/v2/logout?client_id=${auth0ClientId}&returnTo=${redirectUrl}, ) When I do so and check the logs in the auth0 console, I see a successful logout.
🌐
GitHub
gist.github.com › jdthorpe › aaa0d31a598f299a57e5c76535bf0690
expo-auth-session example · GitHub
Thank you for sharing this! Works great with Auth0, within a few modifications (endpoint, clientId, and setting an appropriate path in makeRedirectUri).
🌐
Auth0
community.auth0.com › get help
Logout from Expo app - Auth0 Community
February 12, 2019 - I’m trying to implement Universal Login in my Expo app. I’ve followed this example so far : GitHub - expo/auth0-example: This example has moved I’m able to get an access token. Now I’m trying to logout my user. This is my attempt so far : await WebBrowser.openBrowserAsync( "https://goferworkondemand.eu.auth0.com/v2/logout", ) However, when I call /authorize endpoint again, the user is not logged out.
🌐
GitHub
github.com › expo › examples › issues › 125
Logout Example using Auth0 Expo · Issue #125 · expo/examples
March 22, 2020 - The example with Auth0 does not show users how to logout from the expo app. I am able to login successfully using the Auth0 example but unable to implement logout and there is scant information on this subject on the web
Published   Mar 22, 2020
🌐
GitHub
github.com › expo › auth0-example › issues › 25
Logout · Issue #25 · expo/auth0-example
Reload to refresh your session. ... This repository was archived by the owner on Feb 21, 2020. It is now read-only. ... This repository was archived by the owner on Feb 21, 2020. It is now read-only. ... Thanks for this example. I'm struggling with logout: I've tried this, but without success: await WebBrowser.openBrowserAsync( "https://goferworkondemand.eu.auth0.com/v2/logout", )
🌐
Reddit
reddit.com › r/reactnative › how do you fully logout (remove a specific cookie?)
r/reactnative on Reddit: How do you fully logout (remove a specific cookie?)
February 14, 2023 -

I'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!

🌐
Expo
forums.expo.dev › expo sdk
How do I implement logout using AuthSession API? - Expo SDK - Forums
February 5, 2020 - Please provide the following: SDK Version: 40 Platforms(Android/iOS/web/all): iOS Add the appropriate “Tag” based on what Expo library you have a question on. #AuthSession Hello, I’ve implemented federated sign in for Google per the example at Authentication - Expo Documentation but, ...
Find elsewhere
🌐
YouTube
youtube.com › watch
Expo Auth Session - Login with Google in React Native Apps ...
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
🌐
npm
npmjs.com › package › expo-auth-session
expo-auth-session - npm
Expo module for browser-based authentication. Latest version: 7.0.10, last published: 10 days ago. Start using expo-auth-session in your project by running `npm i expo-auth-session`. There are 74 other projects in the npm registry using expo-auth-session.
      » npm install expo-auth-session
    
Published   Dec 05, 2025
Version   7.0.10
Author   650 Industries, Inc.
🌐
Medium
medium.com › @shawnastaff › expo-react-native-tutorials-475acaef8b71
Expo React Native Tutorials. Part 4: Sign Out and Clean Up | by Shawna Staff | Medium
December 27, 2024 - That’s exactly what we’ll be tackling in this part of the tutorial. ... Add a Sign-Out Button: Integrate a logout option into the header bar for easy access. Set Up Navigation Tabs: Use @expo...
🌐
Stack Overflow
stackoverflow.com › questions › tagged › expo-auth-session
Newest 'expo-auth-session' Questions - Stack Overflow
I'm building the mobile version for a website, and using the identity server for authentication, I'm using expo-auth-session for handling this but I'm facing a problem redirecting back to my app, is ...
🌐
Descope
descope.com › blog › post › expo-authentication
Add Authentication to an Expo App With Descope
The logout function revokes the tokens and resets the authentication state. In this blog, you learned the benefits of pairing Expo with Descope for creating personalized and secure user authentication for your mobile apps.
🌐
JAMES IRISH
jamesirish.io › blog › auth0-pkce-flow-using-expo-authsession
Auth0 Authorization Code Flow with PKCE using Expo AuthSession — JAMES IRISH
April 3, 2024 - One challenge with this, Expo’s AuthSession proxy website (see their docs for more) doesn’t correctly handle logout redirects back to the app which is a little disappointing. While you can clear the application state & storage easily, clearing the Auth0 session cookies requires the browser.
🌐
Reddit
reddit.com › r/expo › expo-auth-session issue
r/expo on Reddit: expo-auth-session issue
April 15, 2024 -

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??

🌐
Stack Overflow
stackoverflow.com › questions › 76464834 › what-is-the-correct-way-to-logout-from-identityserver4-in-react-native-expo
reactjs - What is the correct way to logout from IdentityServer4 in React Native Expo - Stack Overflow
const authDiscoveryDocument = { authorizationEndpoint: `${domain}/authorize`, tokenEndpoint: `${domain}/oauth/token`, } const authRequestConfig = { redirectUri, clientId, scopes: [...], // This option is the key: Prompt is from expo-auth-session // this will make web login prompt ALWAYS ask username/password when you call promptAsync // even if user is still logged in // Otherwise the browser will ALWAYS use existing credentials to silently login // hence not allowing users to switch account prompt: Prompt.Login, } const [authRequest] = useState(new AuthRequest(authRequestConfig)) const [authResponse, setAuthResponse] = useState(null) const handleLogin = async () => { const loginResponse = await authRequest.promptAsync(authDiscoveryDocument, { // @showInRecents option allows web login screen to stay "in memory" even if user // switches to a diff app in the middle of authentication (e.g.
🌐
Auth0
community.auth0.com › get help
Logout with Expo - #3 by noah.lustig - Auth0 Community
August 20, 2020 - Hi @hannes.hesse , This has shifted down my list of priorities lately, and I haven’t figured out a solution yet. I was doing some digging during the holiday break, and I think the solution lies somewhere in the expo AuthSession docs. Specifically, my next shot would be to mess around with some of the methods exposed there, specifically AuthSession.revokeAsync(). I still haven’t attempted this solution, but I think the issue has to do with cookies being passed back from the expo WebBrowser th...
🌐
ITNEXT
itnext.io › user-authentication-with-expo-cli-6ac853c272d4
User Authentication with Expo cli | by Evan Burbidge | ITNEXT
January 24, 2023 - How to use Auth0 for User Authentication with Expo cli A guide to using expo cli with Auth0 to manage user Authentication. Introduction During a project it was decided early on that the application …