Skip to content

Commit 22d4959

Browse files
committed
docs: update example for passkeys in TwoFactorAuth
1 parent 36e14c7 commit 22d4959

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adminforth/documentation/docs/tutorial/07-Plugins/02-TwoFactorsAuth.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Now, update the settings of the Two-Factor Authentication plugin:
303303
plugins: [
304304
new TwoFactorsAuthPlugin ({
305305
twoFaSecretFieldName: 'secret2fa',
306-
timeStepWindow: 1
306+
timeStepWindow: 1,
307307
//diff-add
308308
passkeys: {
309309
//diff-add
@@ -317,7 +317,7 @@ Now, update the settings of the Two-Factor Authentication plugin:
317317
//diff-add
318318
settings: {
319319
// diff-add
320-
expectedOrigin: "http://localhost:3000", // important, set it to your backoffice origin (starts from scheme, no slash at the end)
320+
expectedOrigin: "http://localhost:3500", // important, set it to your backoffice origin (starts from scheme, no slash at the end)
321321
//diff-add
322322
// relying party config
323323
//diff-add
@@ -352,7 +352,7 @@ Now, update the settings of the Two-Factor Authentication plugin:
352352
// diff-add
353353
// Can be "platform", "cross-platform" or "both"
354354
// diff-add
355-
authenticatorAttachment: "platform",
355+
authenticatorAttachment: "both",
356356
//diff-add
357357
requireResidentKey: true,
358358
//diff-add

0 commit comments

Comments
 (0)