Skip to main content

verify_jwt

Function verify_jwt 

Source
pub fn verify_jwt(
    token: &str,
    secret: &str,
    now_unix: u64,
) -> Result<String, ServiceError>
Expand description

Verify a JWT and return the sub (user_id) if valid.