Skip to main content

validate

Function validate 

Source
pub fn validate(
    token: &str,
    config: &JwtConfig,
) -> Result<TokenClaims, JwtError>
Expand description

Validate a JWT token string and return the claims.

A token whose aud claim matches any entry in config.accepted_audiences passes. Per-tool authorization (scope check) is done separately by callers via ScopeConfig.