
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
- Is my approach for deleting registered u...
A few weeks ago, I was advised not to use the registered users' id in my web app. Instead, I store the publicly viewable information such as username and email ...
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
