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 OverflowTry 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
I have the exact same issue. I've posted on the Expo forums too and tried to contact the devs about it but nobody's responding to me. I think it's been broken with a recent change. If you look at the redirect URL it's supposed to have two more query parameters one for the authentication URL and one for the return URL
Videos
Hi there! I'm working in a personal project and I want to make a log in and sign up with google, then I have been working with expo-auth-session (https://docs.expo.dev/versions/latest/sdk/auth-session/) and google cloud. The issue is that when I make log in, it never gets back to my app, everytime it redirect to google.com
I'm working in android. How can I fix this problem? did you find this issue anytime?
thanks you for advice!
Edit: My login button component is this (it's just a test, I never do it before):
WebBrowser.maybeCompleteAuthSession();
export const Login = () => {
const [request, response, promptAsync] = Google.useAuthRequest({
androidClientId: config.GOOGLE_ANDROID_CLIENT_ID,
clientId: config.GOOGLE_ANDROID_CLIENT_ID,
});
const testSending = async (token: string) => {
console.log("=========================TOKEN========================");
console.log(token);
console.log("=================================================");
};
useEffect(() => {
if (response) {
if (response.type === 'success') {
const { authentication } = response;
testSending(authentication?.idToken || '');
console.log(authentication);
}else {
console.log("=========================FAILED========================");
console.log("Login failed");
console.log("=================================================");
}
}
}, [response])
return (
<Pressable onPress={() => promptAsync().catch((error) => console.error(error))} disabled={!request} style={{ padding: 10, backgroundColor: 'blue' }}>
<Text style={{ color: 'white' }}>Login with Google</Text>
</Pressable>
)
}
» npm install expo-auth-session