Clerk logo

Clerk Docs

Ctrl + K
Go to
Check out a preview of our new docs.

Verifying a session

Protect Your Backend APIs

Go makes it really easy to create a simple HTTP server, and Clerk makes it really easy to authenticate any request. In the following example you can learn how to verify a session and retrieve the corresponding user.


Using middleware

The Clerk SDK also provides a simple middleware that adds the active session to the request's context.


Was this helpful?

Clerk © 2023