I developed a Vite ReactJS web application where users log in using Google OAuth 2.0. Upon logging in, I retrieve the user's email and store it in the users
collection in Appwrite. After logging in, users are prompted to set a username, which is also stored in the same collection alongside their email. So, each user in the collection has the following attributes: Document ID
, email
, given_name
, username
, and avatar
.
The email is obtained through Google login, while the username is set after the user completes a CAPTCHA. I do not store the email unless the user has set a username and passed the CAPTCHA.
Appwrite provides an Auth feature with Users and Teams. So I am confused if I am on the correct path with the user sign up process.
Currently, my application works as intended. I just want to know if my approach is unproblematic. Can you please clarify?
Recommended threads
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...