pub trait TokenDecoder<T: for<'b> Deserialize<'b> + Claims>: TokenDecoderClone<T> {
// Required method
fn decode_token(&self, token: &str) -> Result<Box<T>, AuthenticationError>;
}
Expand description
Token decoder claim trait definition. Decodes a string token to either a boxed instance of Claims
or returns an error.