pub trait Authenticator: Extension {
// Required method
fn authenticate(&mut self, headers: Headers) -> Result<Token, ErrorResponse>;
}
Expand description
A trait that extends Extension
and provides authentication functionality.
pub trait Authenticator: Extension {
// Required method
fn authenticate(&mut self, headers: Headers) -> Result<Token, ErrorResponse>;
}
A trait that extends Extension
and provides authentication functionality.