Skip to main content

capy_auth/
lib.rs

1//! Optional conventional browser identity: database sessions and explicit policies.
2//! Applications normally use this through `capy::auth` and `capy make:auth`.
3mod delivery;
4mod events;
5pub use events::{
6    EmailVerified, LoggedOut, LoginSucceeded, PasswordResetCompleted, UserRegistered,
7};
8mod dto;
9mod extract;
10pub mod migration;
11mod models;
12pub mod password;
13mod policy;
14mod runtime;
15mod secret;
16mod throttle;
17pub mod verification;
18pub use verification::{
19    LocalVerificationDelivery, MemoryVerificationDelivery, VerificationDelivery,
20    VerificationMessage, VerificationStatus, VerifyEmailRequest,
21};
22
23pub use capy_core::{
24    AuthSettings, AuthThrottleLimit, AuthThrottleSettings, HashConcurrency, PasswordSettings,
25    SameSite,
26};
27pub use delivery::{LocalResetDelivery, MemoryResetDelivery, ResetDelivery, ResetMessage};
28pub use dto::{
29    normalize_email, CsrfResponse, ForgotPasswordRequest, LoginRequest, RegisterRequest,
30    ResetPasswordRequest, ResetRequestedResponse, UserResponse,
31};
32pub use extract::{AuthUser, OptionalAuth};
33pub use password::PasswordService;
34pub use policy::Policy;
35pub use runtime::{prune, routes, verification_routes, AuthService};
36pub use secret::Secret;