Class: Unmagic::Passkeys::ApplicationController

Inherits:
Object
  • Object
show all
Includes:
Request
Defined in:
app/controllers/unmagic/passkeys/application_controller.rb

Overview

Base controller for the passkey auth flows. Inherits from the host's ApplicationController by default (configurable via Unmagic::Passkeys.configuration.base_controller) so the configured hooks can call your app's session helpers, and so the flows pick up your layout.

Your app customizes behaviour by subclassing the concrete controllers (SessionsController / CredentialsController) and re-pointing the routes with use_unmagic_passkeys { controllers ... }.

Direct Known Subclasses

CredentialsController, SessionsController

Method Summary

Methods included from Request

#passkey_authentication_options, #passkey_authentication_params, #passkey_registration_options, #passkey_registration_params