Hello! I have the following register function in React:
TypeScript
async function register(email, password, name) {
await account.create(ID.unique(), email, password, name);
await account.createVerification('http://localhost:3000/verify');
navigate('/login');
}
The user is registered, but the verify email is somehow not send. I get the error: POST https://SECRET.de/v1/account/verification 401 (Unauthorized)
TL;DR
Developers are facing a 401 error when trying to send a verification email using Appwrite. The issue may be due to incorrect API credentials or missing authentication headers. Double-check the credentials and ensure they are correct.Recommended threads
- Firebase app import
I'm **very** new to appwrite and I just set up appwrite with docker and I'm trying to import a Firebase app I have set up but it's erroring and I don't really k...
- Console infinite loading behind NginxPro...
Hi All, I am trying to get AppWrite to work behind NPM. I've followed the Medium guide to set proper headers, I've added my proxy configuration to NPM, and I ...
- Auth Issue (maybe?)
Hi there, I'm relatively new to programming and am following a tutorial on youtube just to get an idea of how this all is suppossed to work. Now Im setting up t...