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 = {