pub trait AuthState: Send + Sync {
// Required methods
fn tokens(&self) -> &dyn TokenStore;
fn quirks(&self) -> &Quirks;
}Available on crate feature
server only.Expand description
What Auth needs from the router’s state.
Required Methods§
Sourcefn tokens(&self) -> &dyn TokenStore
fn tokens(&self) -> &dyn TokenStore
The token store to resolve credentials tokens against.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".