1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Test authentication utilities.
//!
//! Provides a builder-based API for setting up authentication state in tests,
//! replacing the deprecated `force_authenticate` method.
//!
//! # Architecture
//!
//! - **`ForceLoginUser`**: Trait for extracting session identity from any user type.
//! Blanket-implemented for all `AuthIdentity` types (available on native targets).
//! - **`SessionIdentity`**: Type-erased identity struct matching `CookieSessionAuthMiddleware` fields.
//! - **`AuthBuilder`**: Entry point returned by `APIClient::auth()`.
//! - **`SecondaryAuth`**: Open trait for secondary auth layers (MFA, PassKey, etc.).
//!
//! # Platform Support
//!
//! Session/JWT builders, TOTP secondary auth, and `AuthIdentity` blanket impl are
//! available unconditionally on native targets (non-wasm).
pub use TestAuthError;
pub use SessionIdentity;
pub use SecondaryAuth;
pub use ForceLoginUser;
pub use TotpSecondaryAuth;
pub use ;
pub use ServerFnAuthBuilder;