Clerk Fastify SDK
The Clerk Fastify SDK provides a powerful set of tools and utilities to seamlessly integrate authentication, user management, and Organization management into your Fastify application. Refer to the quickstart guide
clerkPlugin()
The clerkPlugin() function is required to integrate Clerk's authentication into your application. The function checks request cookies and headers for a session JWT. If valid, it attaches the Authrequest object under the auth key. See the reference doc
getAuth()
The getAuth() helper retrieves the current user's authentication state from the request object. It returns the Auth object
Feedback
Last updated on