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.
pub fn verify_token_with_scope(
token: &str,
secret: &[u8],
expected_scope: TokenScope,
) -> Result<TokenPayload, TokenError>Verify a token and enforce a specific scope.