Skip to main content

verify_csrf

Function verify_csrf 

Source
pub fn verify_csrf(auth: &Auth, scope: &str, token: &str) -> SlabResult<()>
Expand description

Verify a submitted CSRF token against scope.

Returns a 403 Forbidden SlabError if the token format, nonce, expiration, or domain-separated HMAC signature is invalid.