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
- Can't access files in bucket
Unable to access the files in the bucket even if the proper permissions are set for the user. Only when I set the permissions open for 'Any', the web app can ac...
- Best approach to an app
hi im building an app that will be used within multiple different companies to store non-sensitive informations such as timings. would the best approach be to c...
- Error in fetching data from collection
Is anything wrong with my code....it keeps returning this