| Modern Authentication |
|---|
|
npm install @react-native-auth/googleyarn add @react-native-auth/googleSee (src/GoogleAuth.tsx)[https://github.com/react-native-auth/google/blob/main/src/GoogleAuth.tsx] for more information.
Controls the authentication flow behavior:
| Value | Behavior |
|---|---|
undefined |
Default behavior - no forced interaction |
'consent' |
Always show consent screen, even for existing app |
'login' |
Always show login screen, force account selection |
'select_account' |
Always show account selection screen |
'none' |
Silent authentication (may fail if no session) |
See (src/NativeGoogleAuth.ts)[https://github.com/react-native-auth/google/blob/main/src/NativeGoogleAuth.ts] for more information.
- Verify you're using the Web Client ID, not Android Client ID
- Check SHA-1 fingerprint is correctly added for Android Client ID
Made with create-react-native-library
