Various tokens and token factories.
Various tokens and token factories.
(backend this)
(data->token this data)
(token->data this token)
(token->data! this token)
(new-sha256-token-factory secret token-ttl-minutes)
(new-sha256-token-factory secret token-ttl-minutes token-name)
(new-sha256-token-factory secret token-ttl-minutes token-name on-error-fn)
Create a new token factory with SHA256 implementation.
Create a new token factory with SHA256 implementation.
(rand-token)
(rand-token n)
(rand-token n src)
Generates a random token of size n (default 5).
Generates a random token of size n (default 5).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close