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
- Unable To Use Root Domain In Appwrite
Since Appwrite Manages my DNS Completely, I tried Pointing the Root Domain (**getmyself.app**) to Github Pages, It failed So I tried Using Appwrite Sites, also ...
- Report: fetch failed
https://github.com/appwrite/appwrite/issues/10989 please assign this issue to me
- Domain Verification Failed - Fastly Conf...
I am trying to add my subdomain api.getmyself.app to my Custom Domain, but I keep getting the error: Domain 'getmyself.app' is owned by another customer I have...