Liking cljdoc? Tell your friends :D

com.unbounce.treajure.rails


session-token->user-idclj

(session-token->user-id token secret)

Extracts the user ID from a Rails session token. Returns a vector of:

[user-id nil] - if the user ID can be extracted [nil error-string] - if the user ID can not be extracted

Extracts the user ID from a Rails session token.
Returns a vector of:

[user-id nil]      - if the user ID can be extracted
[nil error-string] - if the user ID can not be extracted
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close