melodyclue
melodyclue
Explore posts from servers
TTCTheo's Typesafe Cult
Created by melodyclue on 4/4/2025 in #questions
2025 Best Expo Stack
Is Supabase a good fit as a backend for Expo? I'd like to handle transactions as well — could you share what kind of stack or architecture you’re using?
3 replies
BABetter Auth
Created by melodyclue on 4/4/2025 in #help
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.
socialProviders: {
google: {
clientId: process.env.GOOGLE_CLIENT_ID as string,
clientSecret: ??? // ← what should I put here?
},
},
socialProviders: {
google: {
clientId: process.env.GOOGLE_CLIENT_ID as string,
clientSecret: ??? // ← what should I put here?
},
},
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!
10 replies
BABetter Auth
Created by melodyclue on 1/29/2025 in #help
type missing on server side ?
On serverside, Is it by design that property suggestions other than "provider" do not appear?
const { url } = await auth.api.signInSocial({
body: {
provider: "google",
newUserCallbackURL: "/onboard",
},
});
const { url } = await auth.api.signInSocial({
body: {
provider: "google",
newUserCallbackURL: "/onboard",
},
});
1 replies