Skip to content
Back

react native google auth redirect url issue?

  • 0
  • React Native
  • Apple
  • Cloud
7oaker
4 Jan, 2025, 14:12

in my app i am currntly building for ios i get the error on the video using the sdk. my googleLogin looks like this:

export const googleLogin = async () => { return await account.createOAuth2Session(OAuthProvider.Google, 'breezerapp://auth', 'breezerapp://auth'); }; i dont know if it is nessesary to specity the rederict uri i got from Google OAuth2 Settings other than in the google cloud console, but i never use the Google client id as it seems appwrite is handling it 😉 maybe @D5 can help me out!

TL;DR
Developers are discussing an issue with the redirect URL in a React Native Google authentication flow. They mention using Expo AuthSession with makeRedirectUri() and setting the redirect URL in the appwrite console platforms section. One developer is having trouble despite making changes in the Expo config. They provide code for their Google login function. It is suggested to specify the redirect URI obtained from Google OAuth2 Settings and to check if Appwrite is handling the Google client ID.
D5
4 Jan, 2025, 14:28

What the app name?

D5
4 Jan, 2025, 14:28

I mean package name

D5
4 Jan, 2025, 14:28

You need to set it in the console, under the platforms section

7oaker
4 Jan, 2025, 14:35

ah i forgot i already did this

7oaker
4 Jan, 2025, 14:36

you mean in the expo config:"expo": { "name": "Breezer", "slug": "Breezer", "scheme": ["breezerapp"],

D5
4 Jan, 2025, 14:39

Under that, there should be a field called bundle name

D5
4 Jan, 2025, 14:39

Or similar

D5
4 Jan, 2025, 14:39

You need to set that in the appwrite console platforms (bellow overview section charts)

7oaker
4 Jan, 2025, 14:54

i did, but it was the old one, i changed it but still the same error unfortunately.

7oaker
4 Jan, 2025, 14:56

for what i just read maybe i need Expo AuthSession for creating the deeplink back to the app using makeRedirectUri()?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more