4 releases
| 0.0.3 | Aug 22, 2025 |
|---|---|
| 0.0.2 | Aug 22, 2025 |
| 0.0.1 | Jun 8, 2025 |
| 0.0.0 | Jun 8, 2025 |
#1693 in Authentication
70 downloads per month
30KB
597 lines
Tesseral SDK for axum.
Typically, you will construct an Authenticator, and then add
require_auth to your router. From there, you can extract the Auth
object from the request extensions.
use axum::{Router, routing::get};
use tesseral_axum::{Auth, Authenticator, require_auth};
let authenticator = Authenticator::new("publishable_key_...".into());
let app: Router = Router::new()
.route("/", get(handler))
.layer(require_auth(authenticator));
async fn handler(auth: Auth) -> String {
format!("You work for {}", auth.organization_id())
}
Documentation: https://tesseral.com/docs/sdks/serverside-sdks/tesseral-sdk-axum
Tesseral Axum SDK
tesseral-axum is the official Tesseral SDK for Axum.
Documentation for this package is available here.
Dependencies
~86MB
~2M SLoC