Skip to main content

Module error

Module error 

Source
Expand description

Authentication error type. AuthError is #[non_exhaustive] — downstream matches must include a wildcard arm so adding variants (e.g., rate-limit-exceeded, MFA-required) in later phases is not a breaking change. Database/driver failures surface as DjogiError::Db(DbError) from the Postgres substrate, not through AuthError. Provider-internal failures that aren’t driver errors wrap as AuthError::Provider(...).

Enums§

AuthError
Authentication and authorization failure modes. Returned by DjogiAuth::authenticate and DjogiAuth::verify, and re-raised as DjogiError::Auth when those calls propagate through ? inside framework operations.