Google Sign-In Not Working with `authClient.signIn.social()`
I'm implementing Google authentication using better-auth with React. Here's my setup:
Issue:
When I click the sign-in button, nothing seems to happen. I've configured my Google OAuth credentials and environment variables, but the authentication flow isn't starting.
Questions:
Am I missing any configuration steps?
Is there a way to debug the authentication flow?
Should I be handling the response from authClient.signIn.social() differently?
Environment:
better-auth (latest version)
React
TypeScript
React Router
- Client-side auth client:
- Server-side auth configuration:
- Sign-in component:
Issue:
When I click the sign-in button, nothing seems to happen. I've configured my Google OAuth credentials and environment variables, but the authentication flow isn't starting.
Questions:
Am I missing any configuration steps?
Is there a way to debug the authentication flow?
Should I be handling the response from authClient.signIn.social() differently?
Environment:
better-auth (latest version)
React
TypeScript
React Router