Response to: https://discord.com/channels/564160730845151244/564160731327758347/1112109101934194748
About how to make verificate an user (react app)
@Sanchit Bajaj I'm answering here
In this part, you firstly need to trigger (for example after creating an account with a button) this:
const promise = account.createVerification('https://example.com');
In the example.com URL you need to setup an URL for redirecting user to a page that you have made in order to complete the verification
After that, in this second URL, you can see the code that the end page needs to verify the user
In other words, the URL I mentioned before (example.com)
After loading the page, you will need to get USER_ID from URL and SECRET. Once you have got it and you have a variable with them, add this code to be executed:
const promise = account.updateVerification('[USER_ID]', '[SECRET]');
You will need to put in the mentioned places both userID and Secret
@Sanchit Bajaj Hope that's helpful, if not, tell me and I will search more examples, etc
Recommended threads
- Problem with Google Workspace at DNS Rec...
Hello, I bought a domain at Namecheap, and Google Workspace used to work there, but now that I switched from Custom DNS to Appwrite's nameservers, it doesn't w...
- change role of a team member in Appwrite
It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of ...
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, it’s mention that only setup client with endpoint / api key is enou...