better-auth-core 1.0.0-alpha.2

Core abstractions for better-auth: traits, types, config, error handling
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Schema traits for binding Better Auth to application-owned auth models.

use crate::entity::{AuthAccount, AuthSession, AuthUser, AuthVerification};

/// App-owned auth schema declaration.
pub trait AuthSchema: Send + Sync + 'static {
    type User: AuthUser;
    type Session: AuthSession;
    type Account: AuthAccount;
    type Verification: AuthVerification;
}