pub type Authenticator = Box<dyn FnMut(&mut dyn NamedTypeLinks, &str) -> Result<Option<u32>>>;Expand description
The subject of a token, or None when the token is not valid: answers
(auth: token).
It is given the store the sessions serve, below any permissions, so a
LinksTokenTable kept in the data can read it:
Box::new(|store, token| LinksTokenTable::new(store).authenticate(token)).
An error fails the authentication.
Aliased Typeยง
pub struct Authenticator(/* private fields */);