(rekeyable session-key-path)
Returns a SessionStore with additional method 'rekey', which will reload the secret key given by the 'session-key-path' argument.
Can be used with Compojure for example like this:
(defn rekey-route [store] (POST "/rekey" request (if (#{"127.0.0.1" "0:0:0:0:0:0:0:1"} (:remote-addr request)) (do (rs/rekey store) (response "rekeyd")) (status (response "Unauthorized") 401))))
Returns a SessionStore with additional method 'rekey', which will reload the secret key given by the 'session-key-path' argument. Can be used with Compojure for example like this: (defn rekey-route [store] (POST "/rekey" request (if (#{"127.0.0.1" "0:0:0:0:0:0:0:1"} (:remote-addr request)) (do (rs/rekey store) (response "rekeyd")) (status (response "Unauthorized") 401))))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close