Skip to main content

verify

Function verify 

Source
pub fn verify(
    keys: &[EncoreAuthKey],
    header: &str,
    req: &Signed<'_>,
    now: SystemTime,
) -> Result<(), VerifyError>
Expand description

Verifies that header, a request’s x-encore-auth, signs req with one of keys, at most MAX_SKEW from now.