You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The form helpers (login_with_passkey_form_for, etc.) used form_with
without a scope, so form builder fields like f.check_box :remember_me
generated name="remember_me" instead of name="account[remember_me]".
Since the passkey strategy reads params[scope][:remember_me], the value
was never found.
Resolve the scope via Devise::Mapping.find_scope! and pass it to
form_with. Switch the internal public_key_credential hidden field to
hidden_field_tag so it stays at the top-level params where strategies
and controllers expect it. Update controllers to read :name from the
now-scoped params.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments