File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 8383 ``` tsx
8484 import { createClerkClient } from ' @clerk/backend'
8585
86- export async function GET(req : Request ) {
87- // Initialize the JS Backend SDK
88- // This varies depending on the SDK you're using
89- // https://clerk.com/docs/js-backend/getting-started/quickstart
90- const clerkClient = createClerkClient ({
91- secretKey: process .env .CLERK_SECRET_KEY ,
92- publishableKey: process .env .CLERK_PUBLISHABLE_KEY ,
93- })
86+ // Initialize the JS Backend SDK
87+ // This varies depending on the SDK you're using
88+ // https://clerk.com/docs/js-backend/getting-started/quickstart
89+ const clerkClient = createClerkClient ({
90+ secretKey: process .env .CLERK_SECRET_KEY ,
91+ publishableKey: process .env .CLERK_PUBLISHABLE_KEY ,
92+ })
9493
94+ export async function GET(req : Request ) {
9595 // Use the `authenticateRequest()` method to verify the token
9696 const { isAuthenticated } = await clerkClient .authenticateRequest (req , {
9797 authorizedParties: [' https://example.com' ],
You can’t perform that action at this time.
0 commit comments