Skip to content

Commit 1f0bf23

Browse files
Update README.md
Co-authored-by: Santiago Rodriguez <46354312+santiagorodriguez96@users.noreply.github.com>
1 parent 72f3910 commit 1f0bf23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ creation_options = WebAuthn::Credential.options_for_create(
303303
exclude: user.credentials.map { |c| c.webauthn_id },
304304
extensions: { appidExclude: domain.to_s },
305305
authenticator_selection: {
306-
resident_key: "required",
307-
user_verification: "required"
306+
resident_key: "discouraged", # For a passwordless login or 2FA. Use "required" for a passkey-based (passwordless and usernameless) login.
307+
user_verification: "required" # For a passwordless or passkey-based (passwordless and usernameless) login. Use "discouraged" for 2FA.
308308
}
309309
)
310310

0 commit comments

Comments
 (0)