PhoenixKitWeb.Users.QrLoginConfirm (phoenix_kit v1.7.192)

Copy Markdown View Source

Phone-side approval screen for QR device-handoff login.

Opened on the user's already-signed-in phone (via the QR the desktop shows). It displays the requesting device and, on the user's explicit Approve, calls PhoenixKit.Users.QrLogin.approve/2 — minting the login token that signs the waiting browser in. There is no auto-approve: this screen is the defense against QR-jacking.

Authenticated route — the phone must already be signed in. If it isn't, the authenticated pipeline redirects to the login page first.

Summary

Functions

handle_event(binary, params, socket)

Callback implementation for Phoenix.LiveView.handle_event/3.

mount(map, session, socket)

Callback implementation for Phoenix.LiveView.mount/3.

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.