mix ash_authentication_phoenix.add_strategy.webauthn (ash_authentication_phoenix v3.0.0-rc.6)

View Source

Adds Phoenix integration for the WebAuthn authentication strategy

Wires the LiveView hook imports and registrations required by the WebAuthn UI components into your assets/js/app.js file.

The browser-side hooks drive the WebAuthn ceremony — they invoke navigator.credentials.create / .get and return the signed assertion to the server. Without them, the WebAuthn components will not function.

Automatic wiring is performed via an AST codemod powered by igniter_js. If igniter_js is not already a dependency, the task adds it to your mix.exs, fetches and compiles it, then continues with the codemod in the same run.

Because the codemod re-emits the file in its canonical form, expect cosmetic formatting changes (e.g. semicolons, indentation) on the first run. Re-running the task is a no-op once the hooks are wired up.

Example

mix ash_authentication_phoenix.add_strategy webauthn

Summary

Functions

igniter(igniter)

Callback implementation for Igniter.Mix.Task.igniter/1.