Skip to main content

verify

Function verify 

Source
pub fn verify(tenant: &TenantSlug, token: &str, now_unix: i64) -> Option<i64>
Expand description

Verify token for tenant at now_unix; returns the page id when the signature is valid for this tenant AND the token hasn’t expired. None when the token is malformed/forged, was minted for another tenant, or has expired.