Skip to content
Back

Hi everyone! I'm using appwrite to make a webapplication and I getting a GET error with code 401!

  • 0
  • Self Hosted
  • Accounts
  • Web
Lord4ndy
7 Feb, 2024, 02:47

I'm using Vite.js and Node.js and I'm trying to add Authentication to my application. When i load any page I'm getting the error 401: Unauthorized. I have an Auth Provider, which always calls the getCurrentUser() when a page loads in. I have included my config.ts where I'm initialising the client, account, databses etc...

TL;DR
Hey developers! I'm using appwrite for my web application and I'm encountering a 401 Unauthorized error when loading any page. I'm using Vite.js and Node.js for this. The error seems to be related to the getCurrentUser() function in my Auth Provider. I have already included my config.ts file where I initialize the client, account, and databases. Any ideas on how to fix this?
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