Internal
Internal
httpSubmit user provided code for validation.
Validate SMS code.
mfa.validateCode('123456', MFACodeType.SMS).catch( function(err){
console.error('Code is not valid', err)
})
Validate Email code.
mfa.validateCode('123456', MFACodeType.EMAIL).catch( function(err){
console.error('Code is not valid', err)
})
Validate OTP code.
mfa.validateCode('123456', MFACodeType.OTP).catch( function(err){
console.error('Code is not valid', err)
})
Register WebAuthN device.
PlusAuthWeb.registerDevice(window.PlusAuth.details.registration_options)
.then(function(deviceRegistrationResult){
mfa.validateCode(deviceRegistrationResult, MFACodeType.WEBAUTHN).catch( function(err){
console.error('Registration failed', err)
})
})
Verify WebAuthN device.
PlusAuthWeb.verify_device(window.PlusAuth.details.authentication_options)
.then(function(deviceVerificationResult){
mfa.validateCode(deviceVerificationResult, MFACodeType.WEBAUTHN).catch( function(err){
console.error('Verification failed', err)
})
})
User provided code
Method of MFA
Generated using TypeDoc
Class containing Multi Factor Authorization related methods.