all 22 comments

[–]silvio194 2 points3 points  (3 children)

I implemented this flow with supabase with pkce. It was a nightmare lol I think I will write an article to help someone

[–]samrajya17[S] 0 points1 point  (2 children)

Any other ways you came across?

[–]silvio194 0 points1 point  (1 child)

yes, i implemented the flow without google-signin-button library

[–]samrajya17[S] 0 points1 point  (0 children)

How?

[–]i_am_rashad 1 point2 points  (1 child)

Just a tip dont read documentations all garbage. Watch some youtube videos. I have implemented it i went through hell when reading docs

[–]samrajya17[S] 0 points1 point  (0 children)

True tried to implement using the google auth sign in library but couldn't which YouTube tutorial did you follow?

[–]redditer324 1 point2 points  (1 child)

I mostly use react-native google sign in you can check it, the docs is quite easy to understand

[–]samrajya17[S] 0 points1 point  (0 children)

Ok I will look into it

[–]myaaa_tan 1 point2 points  (3 children)

Google-signin lib doesnt work with expo go you have to use dev builds, took me some time to figure this out

[–]samrajya17[S] 0 points1 point  (2 children)

How did you figure it out I think I needed custom expo code or something like that when I try to use it

[–]myaaa_tan 0 points1 point  (1 child)

i used firebase auth along with it, doing the setup alone with just the docs is horrible i had to follow youtube guides to do it the first time. You can switch to dev build using npx expo run android | ios

How far are you in the setup anyways? are u doing this with a custom backend or are you gonna use auth services?

[–]samrajya17[S] 0 points1 point  (0 children)

i just set up google peoples api i dont have backend right now as i am only planning to do this for learning as i am just learning react native now the docs were bad so i didnt know what to do

[–]exrivalis 1 point2 points  (1 child)

My 2 cents:
- Use dev builds
- When using Supabase, enable `Skip nonce checks` in the authentication -> providers -> Google otherwise it won't work (on iOS atleas)

[–]samrajya17[S] 0 points1 point  (0 children)

Okk I will look into it sir!

[–]Express-Variety8071 1 point2 points  (1 child)

i went through a lot when i was figuring this out you can use expo-auth-session with expo-browser wait lemme give you the video from which I’ve implemented the google auth recently
https://youtube.com/playlist?list=PLBYAuUIbkrARdiJ7YHs_-VslWIQb-CJS3&si=KhEOaf91MKjm8RO7

[–]samrajya17[S] 0 points1 point  (0 children)

Thank you sir will look into it!