@clerk/fastify 3.1.93-snapshot.v20261021181323 → 3.1.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -4
- package/AGENTS.md +0 -33
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ const API_URL = process.env.CLERK_API_URL || (0, _clerk_shared_apiUrlFromPublish
|
|
|
48
48
|
const JWT_KEY = process.env.CLERK_JWT_KEY || "";
|
|
49
49
|
const SDK_METADATA = {
|
|
50
50
|
name: "@clerk/fastify",
|
|
51
|
-
version: "3.1.93
|
|
51
|
+
version: "3.1.93",
|
|
52
52
|
environment: "production"
|
|
53
53
|
};
|
|
54
54
|
const { Cookies, Headers } = _clerk_backend_internal.constants;
|
|
@@ -198,7 +198,7 @@ const clerkClient = (0, _clerk_backend.createClerkClient)({
|
|
|
198
198
|
apiUrl: API_URL,
|
|
199
199
|
apiVersion: API_VERSION,
|
|
200
200
|
jwtKey: JWT_KEY,
|
|
201
|
-
userAgent: `@clerk/fastify@3.1.93
|
|
201
|
+
userAgent: `@clerk/fastify@3.1.93`,
|
|
202
202
|
sdkMetadata: SDK_METADATA
|
|
203
203
|
});
|
|
204
204
|
|
package/dist/index.mjs
CHANGED
|
@@ -21,7 +21,7 @@ const API_URL = process.env.CLERK_API_URL || apiUrlFromPublishableKey(PUBLISHABL
|
|
|
21
21
|
const JWT_KEY = process.env.CLERK_JWT_KEY || "";
|
|
22
22
|
const SDK_METADATA = {
|
|
23
23
|
name: "@clerk/fastify",
|
|
24
|
-
version: "3.1.93
|
|
24
|
+
version: "3.1.93",
|
|
25
25
|
environment: "production"
|
|
26
26
|
};
|
|
27
27
|
const { Cookies, Headers } = constants;
|
|
@@ -171,7 +171,7 @@ const clerkClient = createClerkClient({
|
|
|
171
171
|
apiUrl: API_URL,
|
|
172
172
|
apiVersion: API_VERSION,
|
|
173
173
|
jwtKey: JWT_KEY,
|
|
174
|
-
userAgent: `@clerk/fastify@3.1.93
|
|
174
|
+
userAgent: `@clerk/fastify@3.1.93`,
|
|
175
175
|
sdkMetadata: SDK_METADATA
|
|
176
176
|
});
|
|
177
177
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clerk/fastify",
|
|
3
|
-
"version": "3.1.93
|
|
3
|
+
"version": "3.1.93",
|
|
4
4
|
"description": "Clerk SDK for Fastify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"module": "./dist/index.mjs",
|
|
57
57
|
"types": "./dist/index.d.ts",
|
|
58
58
|
"files": [
|
|
59
|
-
"AGENTS.md",
|
|
60
59
|
"dist",
|
|
61
60
|
"!dist/**/*.d.ts.map",
|
|
62
61
|
"!dist/**/*.d.mts.map",
|
|
@@ -64,8 +63,8 @@
|
|
|
64
63
|
],
|
|
65
64
|
"dependencies": {
|
|
66
65
|
"fastify-plugin": "^5.1.0",
|
|
67
|
-
"@clerk/backend": "3.26.2
|
|
68
|
-
"@clerk/shared": "4.
|
|
66
|
+
"@clerk/backend": "^3.26.2",
|
|
67
|
+
"@clerk/shared": "^4.41.1"
|
|
69
68
|
},
|
|
70
69
|
"devDependencies": {
|
|
71
70
|
"fastify": "^5.8.5"
|
package/AGENTS.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
## Clerk + Fastify
|
|
2
|
-
|
|
3
|
-
Read the installed `@clerk/fastify` types before changing auth code. If a symbol is not in those types, it does not exist.
|
|
4
|
-
|
|
5
|
-
### Current APIs
|
|
6
|
-
|
|
7
|
-
- Register the plugin with `fastify.register(clerkPlugin)` from `@clerk/fastify`. It targets Fastify `5.x`.
|
|
8
|
-
- The plugin runs on the `preHandler` hook by default. `hookName: 'onRequest'` is the only alternative.
|
|
9
|
-
- Read auth with `getAuth(req)`. It throws if `clerkPlugin` is not registered.
|
|
10
|
-
- Use the `clerkClient` exported from `@clerk/fastify` for Backend API calls.
|
|
11
|
-
- Verify webhooks with `verifyWebhook(req)` from `@clerk/fastify/webhooks`.
|
|
12
|
-
- Clerk Elements is removed. Never use it.
|
|
13
|
-
|
|
14
|
-
<!-- BEGIN:clerk-plugin -->
|
|
15
|
-
|
|
16
|
-
### Clerk plugin
|
|
17
|
-
|
|
18
|
-
The Clerk plugin gives agents Clerk's skills and MCP server. If it is not installed, tell the user they can install it. Do not run the command yourself:
|
|
19
|
-
|
|
20
|
-
```sh
|
|
21
|
-
npx plugins add clerk/skills
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Install steps for each tool: https://clerk.com/docs/guides/ai/overview
|
|
25
|
-
Source: https://github.com/clerk/skills
|
|
26
|
-
|
|
27
|
-
Ask the user before calling any Clerk tool that creates or changes something in their Clerk account.
|
|
28
|
-
|
|
29
|
-
### Docs
|
|
30
|
-
|
|
31
|
-
Start at https://clerk.com/docs/llms.txt. Add `.md` to any docs URL to get Markdown.
|
|
32
|
-
|
|
33
|
-
<!-- END:clerk-plugin -->
|