Function iqps_backend::auth::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