practicing the you tube video chai aur react series and encountered this error of unauthorization white getting the current account and I have make no mistake in syntax but I don't understand about this error checked all the imports and paths in to my react project all are correct but the result is an error
Yes, the error is expected if you don't have a session
How to solve this? I'm stuck here
There's nothing to solve getting that error simply means the user is not authenticated. When a user input their credentials during login, for example using email + password, you'd call the createEmailSession passing the credentials as arguments to create a session. Then return await this.acount.get(); will not throw errors. Check the docs:
Recommended threads
- Realtime fails to connect/reconnect
I have been having trouble with my appwrite realtime connection for a few days now. Before the code that was working fine now is giving failed to connect errors
- How to stop my project from being frozen...
So we encountered an error in production because our appwrite project had been frozen due to inactivity. Is there any way of automating checking in and activity
- 403 The current user has been blocked.
Hello, I have a free plan; I've tried to access my project and I get the message "403 The current user has been blocked." I have database, sites, and auth in us...