Skip to main content

validate_token

Function validate_token 

Source
pub fn validate_token(
    token: &DelegationToken,
    delegator_pk: &PublicKey,
    delegation_pk: &PublicKey,
    project_id: &str,
) -> Result<DelegationClaims, JoyError>
Expand description

Validate a delegation token against the delegator’s identity key and the stable delegation key recorded in project.yaml.