Overview
If your app uses Clerk for authentication, you need to configure a special sign-in flow so the Frostline agent can access your app during demos. Frostline uses ticket-based authentication to securely bypass your standard Clerk login flow only inside the demo environment. This allows the agent to enter your app as a predefined user without interacting with login UI or exposing credentials. This flow is built on top of Clerk’s official sign-in token mechanism. You can read more hereHow it works
- Frostline generates a one-time Clerk sign-in ticket
- The agent navigates to
/accept-token?ticket=... - Your app exchanges the ticket for a Clerk session
- The user is signed in and redirected into your app
- Uses Clerk’s supported authentication strategies
- Does not expose passwords or secrets
- Only runs inside the demo environment
1
Create the accept-token page
This page accepts the sign-in ticket from the query parameters, completes authentication with Clerk, and redirects the user into your app.This page will:
- Next.js (App Router)
Create the following file:
- Extract the
ticketparameter from the URL - Authenticate the user using Clerk’s ticket strategy
- Activate the session on success
- Redirect the user into your app
2
Configure Clerk credentials
To generate sign-in tickets, Frostline needs access to Clerk credentials in the demo environment.
Required credentials
- Clerk Secret Key
- User ID (The user the agent will authenticate as during demos)
- Secret keys in Clerk Dashboard → API Keys
- User IDs in Clerk Dashboard → Users
Demo environment configuration
Use Clerk development instance keys for your demo environment.Most Clerk projects automatically include:- A development instance
- A production instance
- The agent impersonates a non-production user
- No interaction with real customer data
- Safer for demos, recordings, and sales calls
Using production Clerk keys
There is no technical restriction on using production Clerk keys.However:- The agent will authenticate as a real production user
- It may interact with real customer data
- This can interfere with analytics, audits, or live users
Security guarantees
- The agent never sees your Clerk credentials
- Secrets are stored encrypted
- Credentials are injected only into a secure sandbox
- Tokens are short-lived and single-use