Skip to content
Init is coming / May 19 - 23
Back

Ability to mark user as "Verified" when creating via node-appwrite.

  • 0
  • Auth
devAshutosh_karn
9 May, 2025, 13:44

I’m using Google Sign-In in my bare React-native app and verifying the user's email through Google OAuth. After verifying the token server-side, I create the user using the node-appwrite SDK. However, even though the email is already verified via Google, the user shows as "Unverified" in the Appwrite Dashboard and requires manual verification.

Request: Please add a way to set emailVerification: true while creating a user via the node-appwrite, since the email is already trusted.

This would greatly help when integrating with third-party OAuth providers like Google or Apple in bare react-native projects, where email verification is already done upstream.

Thank you for your amazing work on Appwrite!

TL;DR
Developers can't mark users as "Verified" when creating them via node-appwrite, even after verifying emails with Google OAuth. The suggestion is to add a feature to set emailVerification: true in node-appwrite for trusted emails.
Eng. Ahmed
9 May, 2025, 13:47

my own one is getting Verified directly

Eng. Ahmed
9 May, 2025, 13:48

i'm using react-native-appwrite

devAshutosh_karn
9 May, 2025, 13:49

actually react-native-appwrite is expo based. and that is not working in bare react-native project.

Eng. Ahmed
9 May, 2025, 13:51

alright if you are doing it server side so i don't see any issues for verifying the account manually using the server

devAshutosh_karn
9 May, 2025, 13:52

My approach – I use @react-native-google-signin/google-signin in my React Native app to get the Google account idToken, which I then send to my Node.js backend. There, I use google-auth-library to verify whether the idToken actually came from Google. If it's verified, I extract the email ID from the idToken and create a user and JWT in Appwrite using that email. that why it does not getting Verified directly. Then, I send the Appwrite JWT back to the React Native app and store it in AsyncStorage.

devAshutosh_karn
9 May, 2025, 13:58
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