rs_auth_core/lib.rs
1//! Core domain logic for rs-auth.
2//!
3//! This crate contains configuration types, error definitions, store traits,
4//! the email sender trait, cryptographic helpers, and the [`AuthService`] that
5//! drives all authentication flows.
6
7pub mod config;
8pub mod email;
9pub mod error;
10pub mod oauth;
11pub mod service;
12pub mod store;
13pub mod types;
14
15pub mod crypto {
16 pub mod hash;
17 pub mod token;
18}
19
20pub use config::{AuthConfig, CookieConfig, EmailConfig, SameSite};
21pub use error::AuthError;
22pub use service::{
23 AuthService, LoginResult, RequestResetResult, ResetPasswordResult, SessionResult, SignupResult,
24 VerifyEmailResult,
25};
26pub use store::OAuthStateStore;