HaAuth.Session (ha_auth v0.1.0)

Copy Markdown View Source

What HaAuth keeps in the Plug session, and reading it back.

Summary

Functions

Sign user in on this conn (fresh session id against fixation).

The page the browser asked for before it had to sign in.

The signed-in user in session (a map with string keys), if still allowed.

Functions

log_in(conn, user)

Sign user in on this conn (fresh session id against fixation).

log_out(conn)

random_id(bytes \\ 32)

return_to(conn)

The page the browser asked for before it had to sign in.

user(session)

The signed-in user in session (a map with string keys), if still allowed.