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?