Post-sign-out navigation
Set a destination after a user signs out of Clerk.
Clerk · Type Alias
ClerkOptions is the optional configuration object accepted by Clerk.load(). Its properties customize loading-related behavior, including where users go after signing out.
ClerkOptions is the optional object accepted by Clerk.load(). It configures loading behavior through properties such as post-sign-out navigation, and each property can be omitted because the entire options object is optional.
clerk.load(options?: ClerkOptions)| Name | Type | Description |
|---|---|---|
options | ClerkOptions | Optional configuration object accepted by load(); its documented properties are optional. |
Not specified on the referenced page.
import { Clerk } from '@clerk/clerk-js';
const clerk = new Clerk(import.meta.env.VITE_CLERK_PUBLISHABLE_KEY);
await clerk.load({
afterSignOutUrl: '/signed-out',
});Loads Clerk with an optional ClerkOptions object containing a post-sign-out destination.
Set a destination after a user signs out of Clerk.
Configure only selected SDK loading behaviors while leaving defaults unchanged.
Support applications where more than one session can be active.
ClerkOptions is the optional object passed to Clerk.load(). It contains configuration properties that control Clerk's loading behavior, and every property is optional.
Follow-up: What should you do when no loading customization is needed? Call clerk.load() without an options object.
A caller can provide only the options it needs, such as afterSignOutUrl. Omitted properties retain Clerk's default behavior.
Follow-up: How can you avoid changing unrelated behavior? Pass a narrowly scoped object containing only the desired property.
ClerkOptions is documented under the Clerk class's load() method. The method accepts an optional object whose properties configure the SDK during loading.
Follow-up: Where should you look for the available fields? Consult the Clerk class reference for the SDK integration being used.
Clerkload()afterSignOutUrlafterMultiSessionSingleSignOutUrl