I'm encountering a problem with the Account.get() method in my React project. When I try to get the currently logged-in user, I get a 401 error: "User (role: guests) missing scope (account)."
I tried ensuring the code runs client-side, but I'm not sure if my implementation is correct. Here is my current setup:
put 'use client' at the top to force it to be client side?
after authenticating when you call account.get() you're getting that error? Have you checked to make sure the session is being set? Check localstorage or cookies.
Are you using oauth2? Another problem could be that the browser is blocking 3rd party cookies. You can try looking into how to allow 3rd party cookies in your browser settings
Yes, I am using OAuth2 and I also allow third-party cookies on my site.
Actually, everything was working fine today, but suddenly an error came from my database side. To check it, I logged out of my authentication, and after that, I am unable to log in to the site.
Recommended threads
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...