Skip to main content

Crate better_auth_allsource

Crate better_auth_allsource 

Source
Expand description

Allsource DatabaseAdapter for better-auth-rs.

Uses Allsource Core for event appending and Query Service for reads, eliminating the need for a separate SQL database for authentication.

§Usage

use better_auth_allsource::AllsourceAuthAdapter;

let adapter = AllsourceAuthAdapter::new(
    "http://localhost:3900",   // Allsource Core
    "http://localhost:3902",   // Allsource Query Service
    "my-tenant-id",
    "ask_my-api-key",
);

let auth = BetterAuth::builder()
    .database(adapter)
    .build();

Structs§

AllsourceAuthAdapter
Allsource-backed DatabaseAdapter for better-auth-rs.

Enums§

AllsourceAuthError