Skip to main content

atrg_auth/
lib.rs

1#![deny(unsafe_code)]
2#![warn(missing_docs)]
3//! OAuth authentication wiring for at-rust-go on top of the AT Protocol.
4//!
5//! Provides OAuth login/callback/logout routes, session management,
6//! AT Protocol JWT verification, and `AuthUser`/`RequireAuth` extractors.
7
8pub mod extractor;
9pub mod jwt;
10pub mod routes;
11pub mod session;
12
13pub use extractor::{AuthUser, RequireAuth};
14pub use session::{AtrgSession, AuthSource};
15
16/// Returns the crate version.
17pub fn version() -> &'static str {
18    env!("CARGO_PKG_VERSION")
19}