From bcc587bfa6301be6339052b2988b8b13cd6a8aa9 Mon Sep 17 00:00:00 2001 From: jayhelton Date: Tue, 11 May 2021 13:18:33 -0500 Subject: [PATCH] adding webauthn --- src/constants.js | 3 ++- tests/auth0/handlers/guardianFactors.tests.js | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/constants.js b/src/constants.js index 78eaf34..dc6f27d 100644 --- a/src/constants.js +++ b/src/constants.js @@ -120,7 +120,8 @@ constants.GUARDIAN_FACTORS = [ 'email', 'duo', 'webauthn-roaming', - 'webauthn-platform' + 'webauthn-platform', + 'recovery-code' ]; constants.GUARDIAN_POLICIES = [ 'all-applications', diff --git a/tests/auth0/handlers/guardianFactors.tests.js b/tests/auth0/handlers/guardianFactors.tests.js index 1bd01cf..189512c 100644 --- a/tests/auth0/handlers/guardianFactors.tests.js +++ b/tests/auth0/handlers/guardianFactors.tests.js @@ -63,7 +63,8 @@ describe('#guardianFactors handler', () => { { name: 'email', enabled: true }, { name: 'duo', enabled: false }, { name: 'webauthn-roaming', enabled: false }, - { name: 'webauthn-platform', enabled: false } + { name: 'webauthn-platform', enabled: false }, + { name: 'recovery-code', enabled: false } ]; const auth0 = { @@ -86,7 +87,8 @@ describe('#guardianFactors handler', () => { { name: 'email', enabled: true }, { name: 'duo', enabled: false }, { name: 'webauthn-roaming', enabled: false }, - { name: 'webauthn-platform', enabled: false } + { name: 'webauthn-platform', enabled: false }, + { name: 'recovery-code', enabled: false } ]; const auth0 = {