An unofficial Clerk SDK for rust
For more detailed documentation, please reference the below links:
This SDK is updated frequently to keep up with any changes to the actual Clerk API. If you see anything that needs updated or is not inline with the official Clerk api, please open an issue!
Example
Checkout examples in the
/examplesdirectory
Using a traditional http request to a valid clerk endpoint:
use tokio;
use ;
async
Using a clerk-rs method:
use tokio;
use ;
async
Protecting a actix-web endpoint with Clerk.dev:
use ;
use ;
async
async
Roadmap
- Support other http clients along with the default reqwest client (like hyper)
- Tokio and async-std async runtimes for hyper clients
- Optional reqwest blocking client
- Support authorization via __session cookie on same-origin
- Add validator support for axum, rocket, warp
Production users
Note: This SDK is completely maintained by the Rust community and is by no means affiliated with Clerk.dev.