Clerk Satellite Domain Demo
Authentication across different domains
Satellite Domain Homepage
The authentication flow will always initiate from the Root Domain
Production Environment
To see how this works in a production environment, head over to the Satellite Domain and try to access the dashboard page. Since this is a protected route defined with clerkMiddleware you'll see that you're redirected to authenticate on the Root Domain and then redirected back to the Satellite domain after successfully completing the sign-in flow.
How It Works
- Root Domain stores authentication state
- Satellite domains read state securely
- Seamless redirection between domains
- Protected by clerkMiddleware
Root Domain
The Root Domain is where authentication state is stored and managed. Users sign in here first.
Satellite Domain
Satellite domains securely read authentication state from the Root Domain without requiring re-authentication.
You are currently on this domain