Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fastify-proxy-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/fastify': minor
---

Add Frontend API proxy support to `@clerk/fastify` via the `frontendApiProxy` option on `clerkPlugin`. When enabled, requests matching the proxy path (default `/__clerk`) are forwarded to Clerk's Frontend API, allowing Clerk to work in environments where direct API access is blocked by ad blockers or firewalls. The `proxyUrl` for auth handshake is automatically derived from the request when `frontendApiProxy` is configured.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,3 @@ exports[`constants > from environment variables 1`] = `
"SECRET_KEY": "TEST_SECRET_KEY",
}
`;

exports[`constants from environment variables 1`] = `
{
"API_URL": "CLERK_API_URL",
"API_VERSION": "CLERK_API_VERSION",
"JWT_KEY": "CLERK_JWT_KEY",
"PUBLISHABLE_KEY": "CLERK_PUBLISHABLE_KEY",
"SDK_METADATA": {
"environment": "test",
"name": "@clerk/fastify",
"version": "0.0.0-test",
},
"SECRET_KEY": "CLERK_SECRET_KEY",
}
`;
14 changes: 0 additions & 14 deletions packages/fastify/src/__tests__/__snapshots__/getAuth.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,3 @@ For more info, check out the docs: https://clerk.com/docs,
or come say hi in our discord server: https://clerk.com/discord
]
`;

exports[`getAuth(req) throws error if clerkPlugin is on registered 1`] = `
"🔒 Clerk: The "clerkPlugin" should be registered before using the "getAuth".
Example:

import { clerkPlugin } from '@clerk/fastify';

const server: FastifyInstance = Fastify({ logger: true });
server.register(clerkPlugin);

For more info, check out the docs: https://clerk.com/docs,
or come say hi in our discord server: https://clerk.com/discord
"
`;
Loading