Trait salvo_extra::jwt_auth::JwtTokenExtractor[][src]

pub trait JwtTokenExtractor: Send + Sync {
    fn get_token<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: &'life1 mut Request
    ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

JwtTokenExtractor

Required methods

Get token from request.

Implementors