Function salvo_csrf::hmac_csrf
source · pub fn hmac_csrf<S>(
hmac_key: [u8; 32],
store: S,
finder: impl CsrfTokenFinder
) -> Csrf<HmacCipher, S>where
S: CsrfStore,
Available on crate feature
hmac-cipher
only.Expand description
Helper function to create a Csrf
use HmacCipher
.