Skip to main content

verify_token_with_scope

Function verify_token_with_scope 

Source
pub fn verify_token_with_scope(
    token: &str,
    secret: &[u8],
    expected_scope: TokenScope,
) -> Result<TokenPayload, TokenError>
Expand description

Verify a token and enforce a specific scope.