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

Download history 173/week @ 2025-08-18 51/week @ 2025-08-25 15/week @ 2025-09-01 1/week @ 2025-09-08 20/week @ 2025-09-15 8/week @ 2025-09-22 40/week @ 2025-09-29 42/week @ 2025-10-06 35/week @ 2025-10-13 25/week @ 2025-10-20 4/week @ 2025-10-27

70 downloads per month

MIT license

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