ArchAstro.Session (archastro v0.2.0)

Copy Markdown

Helpers for session-scoped authentication in LiveView and other multi-user apps.

Login credentials exist only on the caller's stack. Successful bearer tokens are handed to the configured ArchAstro.TokenServer; usernames and passwords are never placed in GenServer configuration or ETS.

Summary

Functions

login(token_server, session_id, email, password, opts \\ [])

sign_out(token_server, session_id)