Expo Google login
I'm using better-auth with Expo for Google social login.
In the socialProviders config, I see that Google requires both clientId and clientSecret, but as far as I understand, when using the Android client (for mobile), Google doesn't provide a clientSecret.
If I try to leave it as undefined, I get a type error.
Since I'm using Expo (and not a web app), is there a correct way to omit clientSecret? Or is there a workaround to bypass the type check?
Any advice appreciated!
Solution:Jump to solution
Oh wait, if you’re authenticating in the expo app, you should get idToken and you should use id token auth instead.
7 Replies
Did you try a random string to see if it works
Since it won’t use it anyway ?
@daveycodez yes, it becomes 400 error

you can just provide a random value for now :))
Hmm, for some reason I'm getting a 400 error — do you have any idea what might be causing it?
@bekacru

Solution
Oh wait, if you’re authenticating in the expo app, you should get idToken and you should use id token auth instead.
If you actually want to open the browser and use better auth to authenticate using google, client secret is required
@bekacru It works ! thanks