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
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- Error: User (role: guests) missing scope...
I want to send a verification code to the user and the given phone number and check it and create a session right after the user entered the secret. For me that...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...