Back

Appwrite Email Verification 401

  • 0
  • Self Hosted
  • Auth
  • Web
ℌ𝔗 | 𝔇𝔞𝔪𝔦𝔞𝔫
28 Jun, 2024, 19:51

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.
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