Skip to main content

handle_token_create

Function handle_token_create 

Source
pub async fn handle_token_create(
    signing_key: &SigningKey,
    user: &str,
    name: Option<String>,
    expires: &str,
    scopes: Vec<String>,
) -> Result<()>
Expand description

Handle policy token create - Create a new JWT API token

Generates a JWT token signed with Ed25519. The token is self-contained and can be validated statelessly by any server with the public key.