Try this:

-Login to your expo account: on command line type:

expo login
##then your account credencials##

then restart your expo instance:

expo start

And everything should work fine

Answer from paichato on Stack Overflow
🌐
Expo Documentation
docs.expo.dev › versions › latest › sdk › auth-session
AuthSession - Expo Documentation
A universal library that provides an API to handle browser-based authentication.
🌐
Expo Documentation
docs.expo.dev › guides › authentication
Authentication with OAuth or OpenID providers - Expo Documentation
expo-auth-session provides a unified API for implementing OAuth and OpenID Connect providers on Android, iOS, and web.
🌐
npm
npmjs.com › package › expo-auth-session
expo-auth-session - npm
AuthSession is the easiest way to implement web browser based authentication (for example, browser-based OAuth flows) to your app, built on top of expo-web-browser.
      » npm install expo-auth-session
    
Published   Dec 05, 2025
Version   7.0.10
Author   650 Industries, Inc.
🌐
GitHub
gist.github.com › jdthorpe › aaa0d31a598f299a57e5c76535bf0690
expo-auth-session example · GitHub
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window.
🌐
Medium
medium.com › @gbenleseun2016 › guide-to-sign-in-with-google-on-the-expo-platform-using-expo-auth-session-9d3688d2107a
Guide to sign In with Google On the Expo platform using expo-auth-session. | by Seun Gbenle | Medium
September 6, 2023 - “expo-auth-session”- command will manage the sign in with google, “expo-crypto” is a peer dependency and must be installed alongside expo-auth-session, “expo-web-browser” will enable you sign in to google without leaving the application.
🌐
GitHub
github.com › expo › expo › blob › main › docs › pages › versions › unversioned › sdk › auth-session.mdx
expo/docs/pages/versions/unversioned/sdk/auth-session.mdx at main · expo/expo
This works because AuthSession adds +expo-auth-session to the default returnUrl; however, if you provide your own returnUrl, you may want to consider adding a similar identifier to enable you to filter out AuthSession events from other handlers.
Author   expo
Find elsewhere
🌐
CodeSandbox
codesandbox.io › examples › package › expo-auth-session
expo-auth-session examples - CodeSandbox
Use this online expo-auth-session playground to view and fork expo-auth-session example apps and templates on CodeSandbox.
🌐
Expo
auth.expo.io
Expo AuthSession Redirect Proxy
This service was created for the Expo AuthSession library along with Expo Go. It provides a URL to which third-party authentication providers redirect clients after authenticating them.
🌐
Expo Documentation
docs.expo.dev › develop › authentication
Authentication in Expo and React Native apps - Expo Documentation
Once the user is authenticated, you need to think about how to store, restore, and validate their session. ... Traditionally, cookies are used to store sessions on the web, while JSON Web Tokens (JWTs) are common in native applications. The above tutorials demonstrate exactly how to handle this. After receiving the ID token from a provider like Google or Apple, you generate a custom JWT on the server using Expo ...
🌐
Reddit
reddit.com › r/expo › expo expo-auth-session & google calendar oauth setup
r/expo on Reddit: Expo expo-auth-session & Google Calendar OAuth setup
February 8, 2025 -

I’m working on integrating Google Calendar OAuth into my React Native app using Expo, and I’m running into an issue where the redirect URI returned by makeRedirectUri({ useProxy: true }) is wrong — it’s always exp://127.0.0.1:8081, even though I’m expecting the Expo proxy URI (e.g. https://auth.expo.io/@username/myapp) to be returned.

I’ve been debugging this for hours and would really appreciate any advice or insight.

Some Context:

I’m using expo-auth-session version ~5.5.2 My app is built with Expo Router and uses OAuth to Google Calendar I want to allow users to connect their Google Calendar and add events from our app I’m using web-based OAuth, not direct sign-in or server-side flows Running locally via expo & Android studio

This is my code snippet:

import { makeRedirectUri, useAuthRequest, ResponseType } from 'expo-auth-session'; import * as WebBrowser from 'expo-web-browser'; import { useEffect } from 'react'; import config from '@/config';

WebBrowser.maybeCompleteAuthSession();

const discovery = { authorizationEndpoint: 'https://accounts.google.com/o/oauth2/v2/auth', tokenEndpoint: 'https://oauth2.googleapis.com/token', };

export function useGoogleAuth() { const redirectUri = makeRedirectUri({ useProxy: true, scheme: 'my app name', });

console.log('[useGoogleAuth] redirectUri =', redirectUri);

const [request, response, promptAsync] = useAuthRequest( { clientId: config.googleClientId, scopes: ['https://www.googleapis.com/auth/calendar.events'], redirectUri, responseType: ResponseType.Code, extraParams: { access_type: 'offline', prompt: 'consent', }, }, discovery );

useEffect(() => { console.log('[useGoogleAuth] response =', response); }, [response]);

return { promptAsync, request, response }; }

And yes I added authorized uris and authorized test users in Google cloud console.

I also added the redirect URI: https://auth.expo.io/@myusername/myapp to google.

My questions: • Why is makeRedirectUri({ useProxy: true }) still giving me exp://127.0.0.1:8081? • Is there some config I’m missing in app.json, expo-router, or somewhere else? • Should I upgrade expo-auth-session or use a different method to get the correct proxy URI?

Thanks

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

🌐
GitHub
github.com › expo › expo › issues › 21084
[expo-auth-session] I'm unable to sign in with Google on Android · Issue #21084 · expo/expo
February 3, 2023 - import React, { useEffect } from "react"; import { View, Text, Button } from "react-native"; import * as AuthSession from "expo-auth-session"; import * as Google from "expo-auth-session/providers/google"; import * as WebBrowser from "expo-web-browser"; WebBrowser.maybeCompleteAuthSession(); const SocialLoginOptions = (): JSX.Element => { const [request, response, promptAsync] = Google.useAuthRequest({ androidClientId: "id0000.apps.googleusercontent.com", iosClientId: "id0000.apps.googleusercontent.com", expoClientId: "id0000.apps.googleusercontent.com", }); useEffect(() => { console.log("respo
Published   Feb 03, 2023
🌐
Medium
medium.com › @danbowden › implementing-refresh-token-flow-in-an-expo-react-native-app-with-expo-auth-session-and-auth0-82eb6d0dea35
Implementing refresh token flow in an expo react native app with expo-auth-session and Auth0 | by Dan Bowden | Medium
December 26, 2021 - In the example code from expo, we explicitly set the response type to be “token” which tells Auth0 we want to do the implicit auth flow. We want to use the “code” response which is the default for expo-auth-session (which is why the token response is omitted from the initial auth request).
🌐
GitHub
gist.github.com › lemmensaxel › 72ece5cd00026cc05888701d7d65fbe0
React-native expo + keycloak PKCE flow implemented using expo AuthSession · GitHub
{ "clientId": "app", "name": "AlertCore Mobiele Applicatie", "surrogateAuthRequired": false, "enabled": true, "alwaysDisplayInConsole": false, "clientAuthenticatorType": "client-secret", "redirectUris": [ "alert-core://*", "https://auth.expo.io/@lemmensaxel/*", "exp://*" ], "webOrigins": [], "notBefore": 0, "bearerOnly": false, "consentRequired": false, "standardFlowEnabled": true, "implicitFlowEnabled": false, "directAccessGrantsEnabled": true, "serviceAccountsEnabled": false, "publicClient": true, "frontchannelLogout": false, "protocol": "openid-connect", "attributes": { "saml.multivalued.ro
🌐
Supabase
supabase.com › docs › guides › auth › quickstarts › with-expo-react-native-social-auth
Build a Social Auth App with Expo React Native | Supabase Docs
1 day ago - Next, you need to protect app navigation to prevent unauthenticated users from accessing protected routes. Use the Expo SplashScreen to display a loading screen while fetching the user profile and verifying authentication status. Create a React context to manage the authentication session, making it accessible from any component:
🌐
Stack Overflow
stackoverflow.com › questions › 78646641 › handling-access-to-multiple-resources-with-expo-auth-session
react native - Handling access to multiple resources with expo-auth-session - Stack Overflow
import { useContext } from 'react'; import { exchangeCodeAsync, makeRedirectUri, Prompt, useAuthRequest, useAutoDiscovery } from 'expo-auth-session'; import { ProfileContext } from '../context/ProfileContext'; import { useQueryClient } from '@tanstack/react-query'; const useAuthentication = () => { const TENANT_ID = '<MY_TENANT_ID>'; const CLIENT_ID = '<MY_CLIENT_ID>'; const AUTHORIZATION_ENDPOINT = `https://login.microsoftonline.com/${TENANT_ID}/oauth2/v2.0`; const TOKEN_ENDPOINT = `${AUTHORIZATION_ENDPOINT}/token`; const LOGIN_ENDPOINT = `https://login.microsoftonline.com/${TENANT_ID}/v2.0`;
🌐
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 - We can generate these manually in JS (with a lot of effort!) however the AuthSession API states they implement PKCE so I was keen to work out if I could borrow the logic for it. At this dead end I began to look for alternative methods and one stood out, under Expo’s AuthRequest documentation is this line: