Skip to content
react-native-authPublic

About

A modern, developer- and user-friendly authentication library for React Native | Google Authentication

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

react-native-auth logo

@react-native-auth/google

Modern Google Authentication for React Native

NPM Version License: MIT Platform: Android

GitHub Issues GitHub Pull Requests


Table of Contents


Features

Modern Authentication
  • One Tap Sign-In (Credential Manager)
  • Account Chooser UI
  • Legacy OAuth Support
  • Scope Request

Installation

Using npm

npm install @react-native-auth/google

Using yarn

yarn add @react-native-auth/google

Usage

See (src/GoogleAuth.tsx)[https://github.com/react-native-auth/google/blob/main/src/GoogleAuth.tsx] for more information.

prompt Parameter

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)

API Reference

Types

See (src/NativeGoogleAuth.ts)[https://github.com/react-native-auth/google/blob/main/src/NativeGoogleAuth.ts] for more information.


Troubleshooting

  • Verify you're using the Web Client ID, not Android Client ID
  • Check SHA-1 fingerprint is correctly added for Android Client ID

License

License: MIT


Made with create-react-native-library

About

A modern, developer- and user-friendly authentication library for React Native | Google Authentication

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages