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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- Paused project can't activate
I have failed to reactivate one my projects which had been paused