Encrypted, short-lived cookie values that carry one sign-in step to the next without server state.
Encrypted, short-lived cookie values that carry one sign-in step to the next without server state.
(derive-key purpose secret)The 32-byte key for one use, purpose, of secret: a key per use, so a
value sealed for one cannot be opened by another.
The 32-byte key for one use, `purpose`, of `secret`: a key per use, so a value sealed for one cannot be opened by another.
(seal key typ claims ttl)Encrypt claims under the 32-byte key for a cookie of kind typ that
expires in ttl seconds.
Encrypt `claims` under the 32-byte `key` for a cookie of kind `typ` that expires in `ttl` seconds.
(unseal key typ value)The claims of a sealed value of kind typ, or nil when it is absent,
forged, expired, or sealed for another step.
The claims of a sealed value of kind `typ`, or nil when it is absent, forged, expired, or sealed for another step.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |