-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated Node SDK references (#1880)
Co-authored-by: victoria <[email protected]> Co-authored-by: Alexis Aguilar <[email protected]>
- Loading branch information
1 parent
66f1523
commit 486edfc
Showing
29 changed files
with
257 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
The `clerkMiddleware()` function accepts an optional object. The following options are available: | ||
|
||
<Properties> | ||
- `audience?` | ||
- `string | string[]` | ||
|
||
A string or list of [audiences](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3). If passed, it is checked against the `aud` claim in the token. | ||
|
||
--- | ||
|
||
- `authorizedParties?` | ||
- `string[]` | ||
|
||
An allowlist of origins to verify against, to protect your application from the subdomain cookie leaking attack.<br />For example: `['http://localhost:3000', 'https://example.com']` | ||
|
||
--- | ||
|
||
- `clockSkewInMs?` | ||
- `number` | ||
|
||
Specifies the allowed time difference (in milliseconds) between the Clerk server (which generates the token) and the clock of the user's application server when validating a token. Defaults to 5000 ms (5 seconds). | ||
|
||
--- | ||
|
||
- `domain?` | ||
- `string` | ||
|
||
The domain used for satellites to inform Clerk where this application is deployed. | ||
|
||
--- | ||
|
||
- `isSatellite?` | ||
- `boolean` | ||
|
||
When using Clerk's satellite feature, this should be set to `true` for secondary domains. | ||
|
||
--- | ||
|
||
- `jwtKey` | ||
- `string` | ||
|
||
Used to verify the session token in a networkless manner. Supply the PEM public key from the **[**API keys**](https://dashboard.clerk.com/last-active?path=api-keys) page -> Show JWT public key -> PEM Public Key** section in the Clerk Dashboard. **It's recommended to use [the environment variable](/docs/deployments/clerk-environment-variables) instead.** For more information, refer to [Manual JWT verification](/docs/backend-requests/handling/manual-jwt). | ||
|
||
--- | ||
|
||
- `organizationSyncOptions?` | ||
- <code>[OrganizationSyncOptions](#organization-sync-options) | undefined</code> | ||
|
||
Used to activate a specific [organization](/docs/organizations/overview) or [personal account](/docs/organizations/organization-workspaces#organization-workspaces-in-the-clerk-dashboard:~:text=Personal%20account) based on URL path parameters. If there's a mismatch between the active organization in the session (e.g., as reported by [`auth()`](/docs/references/nextjs/auth)) and the organization indicated by the URL, the middleware will attempt to activate the organization specified in the URL. | ||
|
||
--- | ||
|
||
- `proxyUrl?` | ||
- `string` | ||
|
||
Specify the URL of the proxy, if using a proxy. | ||
|
||
--- | ||
|
||
- `signInUrl?` | ||
- `string` | ||
|
||
An alternative sign in URL. | ||
|
||
--- | ||
|
||
- `signUpUrl?` | ||
- `string` | ||
|
||
An alternative sign up URL. | ||
|
||
--- | ||
|
||
- `publishableKey` | ||
- `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. | ||
|
||
--- | ||
|
||
- `secretKey?` | ||
- `string` | ||
|
||
The Clerk Secret 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. The `CLERK_ENCRYPTION_KEY` environment variable must be set when providing `secretKey` as an option, refer to [Dynamic keys](#dynamic-keys). | ||
</Properties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
> [!IMPORTANT] | ||
> The Node SDK is no longer supported. [Upgrade to the Express SDK](/docs/upgrade-guides/node-to-express). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.