You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to sign-in only users who have payload.metadata.permission = true, so I verify it on middleware. If user does not have access, I redirect to api/sign-out route handler.
After the code runs application go back to sign-in page automatically but, when I try to sign-in again I get a loop of erros saying:
{
"shortMessage": "Browser unauthenticated",
"longMessage": "Unable to authenticate this browser for your development instance. Check your Clerk cookies and try again. If the issue persists reach out to [email protected].",
"code": "dev_browser_unauthenticated_code",
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to sign-in only users who have payload.metadata.permission = true, so I verify it on middleware. If user does not have access, I redirect to api/sign-out route handler.
Code below
After the code runs application go back to sign-in page automatically but, when I try to sign-in again I get a loop of erros saying:
What I shoud to change in my logic or code?
Beta Was this translation helpful? Give feedback.
All reactions