(authenticate-browser-token token)Authenticate a browser session token.
Given a session token (e.g. from a cookie), returns a map on success: {:user-id <string> :expires-at <ms> :refreshed? <boolean>}
Authentication succeeds if the token exists and is not expired. If session TTL is positive, the expiration is refreshed when remaining TTL is at or below 50%. If TTL is non-positive, the token is never refreshed.
Returns nil if the token is missing, unknown, or expired.
Authenticate a browser session token.
Given a session token (e.g. from a cookie), returns a map on success:
{:user-id <string> :expires-at <ms> :refreshed? <boolean>}
Authentication succeeds if the token exists and is not expired.
If session TTL is positive, the expiration is refreshed when remaining TTL
is at or below 50%. If TTL is non-positive, the token is never refreshed.
Returns nil if the token is missing, unknown, or expired.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 |