Skip to content

Commit f52faac

Browse files
committed
fix: Correct Google Expo Client ID in AuthContext and clean up imports
1 parent 28b1734 commit f52faac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/context/AuthContext.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import 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";
24
import { createContext, useEffect, useState } from "react";
35
import * as authApi from "../api/auth";
46
import {
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

1212
WebBrowser.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,

0 commit comments

Comments
 (0)