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
- Getting CORS error when accessing websit...
When accessing my website I'm getting: (index):1 Access to font at 'https://assets.appwrite.io/fonts/inter/Inter-Regular.woff2' from origin 'https://mvp-site-ra...
- How to ByPass the Hostname restriction f...
Hello, Im hosting my React application in a stateless server environment, where the IP of the client keeps changing for the server. How do I bypass the hostname...
- Email templates partially broken in non-...
Good afternoon! Non-english locales are missing some variables introduced in recent releases. That makes the sent emails look bad. The issue has been raised a...