Vibe.Web.Auth (vibe v0.2.1)

Copy Markdown View Source

Token-based authentication for the web console.

Generates a random token on first startup, persists it to ~/.vibe/web-token (mode 0600). The token is checked on every request — passed as ?token=xxx query param on first visit, then stored in a session cookie.

Summary

Functions

authenticated_url(opts \\ [])

@spec authenticated_url(keyword()) :: String.t()

token()

@spec token() :: String.t()

token_path()

@spec token_path() :: String.t()