module

Exu::Web::Auth::SessionManager

Manages cryptographic session tokens and cookie lifecycle.

Constants

COOKIE_NAME = "exu_session"
SESSION_KEY_PATH = ENV["EXU_SESSION_KEY_PATH"]? || "/var/lib/exu/session.key"

Class methods

generate_token(username : String) : String
Source
get_session_username(env : HTTP::Server::Context) : String | Nil
Source
session_secret
Source
verify_token(token : String) : String | Nil
Source