Skip to content
Back

auth.js:42 GET https://cloud.appwrite.io/v1/account 401 (Unauthorized)

  • 0
  • Self Hosted
  • Auth
Avidev-creator
8 Apr, 2024, 11:59

I am getting this error and not able to resolve it.

The error is comming from this --

async getCurrentUser() { try { return this.account.get(); } catch (error) { throw error; } }

TL;DR
Developers are facing a 401 Unauthorized error at line 42 in auth.js while trying to get the current user. The issue seems to be related to authentication. Double-check API key and endpoint URL for any mistakes.
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