Google provider from expo-auth-session only works on dev client

Hi everyone, I’m using Google provider from expo-auth-session but it only works on dev client, in production the Google Auth Web View just closes after selecting an account and nothing happens.

const [request, response, promptAsync] = Google.useAuthRequest({
  androidClientId: Constants.manifest?.extra?.googleAndroidClientId,
});

Sentry caught the error below but I couldn’t reproduce it on dev client. I noticed that the response isn’t updated at any time, the error is triggered from within the lib.

The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.

I’ve read a lot of issues and the best I’ve found is configure Intent Filters and Redirect Uri but I get Error 400: invalid_request from Google Auth Web View

Using SDK 46, expo-auth-session 3.7.1

I’m really stuck on this, really appreciate any help!

Upgrading to SDK 47, expo-auth-session 3.7.2 resolves the issue.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.