File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import AsyncStorage from "@react-native-async-storage/async-storage" ;
2+ import { useAuthRequest } from "expo-auth-session/providers/google" ;
3+ import * as WebBrowser from "expo-web-browser" ;
24import { createContext , useEffect , useState } from "react" ;
35import * as authApi from "../api/auth" ;
46import {
57 clearAuthTokens ,
68 setAuthTokens ,
79 setTokenUpdateListener ,
810} from "../api/client" ;
9- import { useAuthRequest } from "expo-auth-session/providers/google" ;
10- import * as WebBrowser from "expo-web-browser" ;
1111
1212WebBrowser . maybeCompleteAuthSession ( ) ;
1313
@@ -20,7 +20,7 @@ export const AuthProvider = ({ children }) => {
2020 const [ isLoading , setIsLoading ] = useState ( true ) ;
2121
2222 const [ request , response , promptAsync ] = useAuthRequest ( {
23- expoClientId : process . env . EXPO_PUBLIC_GOOGLE_EXPO_CLIENT_ID ,
23+ expoClientId : process . env . EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID , // Use web client ID for Expo Go
2424 iosClientId : process . env . EXPO_PUBLIC_GOOGLE_IOS_CLIENT_ID ,
2525 androidClientId : process . env . EXPO_PUBLIC_GOOGLE_ANDROID_CLIENT_ID ,
2626 webClientId : process . env . EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID ,
You can’t perform that action at this time.
0 commit comments