(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 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 |