An unofficial clerk.dev SDK for rust
Note: 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 offical Clerk api, open an issue!
A unofficial clerk.dev SDK. For more detailed documentation, please reference the clerk docs: https://clerk.com/docs/reference/backend-api
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
Note: This SDK is completely maintained by the Rust community and is by no means affiliated with Clerk.dev.