[Organization][organization-ref] | null | undefined
- A getter for your Clerk app's proxy URL. Required for applications that run behind a reverse proxy. Can be either a relative path (`/__clerk`) or a full URL (`https://[User][user-ref] | null | undefined
+ - `status`
+ - `'degraded' | 'error' | 'loading' | 'ready'`
- A shortcut to `Session.user` which holds the currently active `User` object. If the session is `null` or `undefined`, the user field will match.
+ The status of the Clerk instance.
---
- - `organization`
- - [Organization][organization-ref] | null | undefined
+ - `user`
+ - [User][user-ref] | null | undefined
- A shortcut to the last active `Session.user.organizationMemberships` which holds an instance of a `Organization` object. If the session is `null` or `undefined`, the user field will match.
+ A shortcut to `Session.user` which holds the currently active `User` object. If the session is `null` or `undefined`, the user field will match.
---
- - `publishableKey`
- - `string | undefined`
+ - `version`
+ - `string`
- The Clerk Publishable Key for your instance. This can be found on the [**API keys**](https://dashboard.clerk.com/last-active?path=api-keys) page in the Clerk Dashboard.
+ A getter for the Clerk SDK version
Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk is loading...
+Clerk has loaded (ready or degraded)
+Clerk is experiencing issues. Please try again later.
+Something went wrong with Clerk. Please contact support.
+Clerk has loaded
-Clerk has loaded
-Clerk has loaded
-Clerk has loaded
-Clerk is loading...
-Clerk has loaded
-Clerk is loading
-Clerk has loaded
-Clerk is loading
-Clerk has loaded
-Clerk is loading
-Clerk has loaded
-[Session][session-ref] | null | undefined
@@ -74,7 +88,19 @@ The `Clerk` class is the main entrypoint class for the `@clerk/clerk-js` package
- `status`
- `'degraded' | 'error' | 'loading' | 'ready'`
- The status of the Clerk instance.
+ The status of the Clerk instance. Possible values are:
+
+ - `'degraded'`: Set when Clerk is partially operational.
+ - `'error'`: Set when hotloading `clerk-js` failed or `Clerk.load()` failed.
+ - `'loading'`: Set during initialization.
+ - `'ready'`: Set when Clerk is fully operational.
+
+ ---
+
+ - `telemetry?`
+ - `{ disabled: boolean, debug: boolean }`
+
+ [Telemetry](/docs/telemetry) configuration.
---
@@ -88,7 +114,7 @@ The `Clerk` class is the main entrypoint class for the `@clerk/clerk-js` package
- `version`
- `string`
- A getter for the Clerk SDK version
+ The Clerk SDK version.
## Methods
@@ -970,6 +996,81 @@ await clerk.navigate('/dashboard')
The route to navigate to.
+### `on()`
+
+Registers an event handler for a specific Clerk event.
+
+```ts
+type OnEventListener =