-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove /nodejs/token-verification; update authenticateRequest() and verifyToken() reference docs #1242
Conversation
Hey, here’s your docs preview: https://clerk.com/docs/pr/1242 |
@@ -22,36 +22,63 @@ function authenticateRequest: (request: Request, options: AuthenticateRequestOpt | |||
|
|||
## `AuthenticateRequestOptions` | |||
|
|||
It is recommended to set these options as [environment variables](/docs/deployments/clerk-environment-variables#api-and-sdk-configuration) where possible, and then pass them to the function. For example, you can set the `secretKey` option using the `CLERK_SECRET_KEY` environment variable, and then pass it to the function like this: `createClerkClient({ secretKey: process.env.CLERK_SECRET_KEY })`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also mention the publishableKey here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mention it throughout the doc - did you see the example sections?
It's not required when using it with a higher level SDK, but it is required if using it with the backend SDK on its own (using createClerkClient
) which I explain and demonstrate in the example sections
Warning
Needs clerk/clerk#486 to be merged for redirects
Explanation:
The linear ticket reads:
This PR: