Back

React native google one tap signin with appwrite.

  • 2
  • Android
  • Auth
murari yadav
14 Mar, 2024, 11:09

We want use google one tap authentication in react native project using Appwrite. But encountering different challenges along the way.

Method 1 with the react-native-appwrite-oauth library initiates OAuth sign-in, but it lacks the ability to retrieve a list of logged-in Google accounts for one-tap login.(Attaching a video for reference)

Method 2, utilizing the react-native-google-signin library, allows successful Google account login and token retrieval, but integrating this with Appwrite's authentication and session management remains unclear.

Method 3, using the Appwrite SDK for React Native, generates an OAuth2 session URL, but encountering issues when attempting to open it in a WebView or browser. ( https://github.com/appwrite/sdk-for-react-native/blob/main/docs/examples/account/create-o-auth2session.md): ref link after createOAuth2Session => https://cloud.appwrite.io/v1/account/sessions/oauth2/google/?project=[projectId]

Could you provide guidance on the correct approach to seamlessly integrate Google One Tap authentication with Appwrite in a React Native project, ensuring smooth session management and authentication flow? We're looking for a solution that combines the benefits of one-tap login with Appwrite's authentication system.

please let us know correct way to integrate with appwrite in react native project ,

TL;DR
Developers are trying to integrate Google One Tap authentication with Appwrite in a React Native project. 1. Method 1 using react-native-appwrite-oauth lacks the ability to retrieve a list of logged-in Google accounts for one-tap login. 2. Method 2 with react-native-google-signin successfully logs in but unclear how to integrate it with Appwrite's authentication. 3. Method 3 using Appwrite SDK has issues with generating and opening the OAuth2 session URL in a WebView or browser. Developers seek guidance on the correct approach for seamless integration. Solution: A possible solution could be exploring different libraries or custom implementations
Laxy Patel
14 Mar, 2024, 11:12

Facing same issue

Steven
14 Mar, 2024, 11:30

On appwrite cloud?

Laxy Patel
14 Mar, 2024, 11:32

not using appwrite cloud with appwrite client sdk

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more