PhoenixKitWeb.Users.QrLogin (phoenix_kit v1.7.208)

Copy Markdown View Source

Desktop "scan to sign in" page.

A signed-out browser lands here, is shown a QR code encoding the phone confirm URL, and waits. When the user's phone approves the sign-in, Keyfob.Live receives the one-time login token over PubSub and this LiveView redirects to the completion controller, which establishes the session.

Redirects already-authenticated users away, and redirects everyone away when the qr_login_enabled setting is off.

Summary

Functions

handle_event(binary, params, socket)

Callback implementation for Phoenix.LiveView.handle_event/3.

handle_info(msg, socket)

Callback implementation for Phoenix.LiveView.handle_info/2.

mount(params, session, socket)

Callback implementation for Phoenix.LiveView.mount/3.

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.