iqps_backend::auth

Function verify_token

Source
pub async fn verify_token(
    token: &str,
    env_vars: &EnvVars,
) -> Result<Auth, Error>
Expand description

Verifies whether a JWT is valid and signed with the secret key

Returns the username and jwt in a struct