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
Error in console: Clerk: Refreshing the session token resulted in an infinite redirect loop. This usually means that your Clerk instance keys do not match - make sure to copy the correct publishable and secret keys from the Clerk dashboard.
Behaviour:
When I open satellite domain (localhost:3000), it redirects me to primary domain sign-in page which is fine but once I login on my primary domain it keep looping there
.env
NEXT_PUBLIC_CLERK_DOMAIN=http://localhost:3000
NEXT_PUBLIC_CLERK_SIGN_IN_URL=http://localhost:3002/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=http://localhost:3002/sign-up
Error in console:
Clerk: Refreshing the session token resulted in an infinite redirect loop. This usually means that your Clerk instance keys do not match - make sure to copy the correct publishable and secret keys from the Clerk dashboard.
Behaviour:
When I open satellite domain (localhost:3000), it redirects me to primary domain sign-in page which is fine but once I login on my primary domain it keep looping there
Middleware.tsx:
const { userId, redirectToSignIn } = await auth()
if (!userId && isPrivateRoute(req)) {
return redirectToSignIn()
}
Packages:
"next": "14.2.20",
"@clerk/nextjs": "^6.9.6",
"react": "^18.3.1",
The text was updated successfully, but these errors were encountered: