Overview
This article explains how to set allowRememberBrowser
with the new api.authentication.challengeWith
method.
Solution
With api.authentication.challengeWith
, the allowRememberBrowser
checkbox can be seen on the widget by default without specifying the option in your Action (ex. api.authentication.challengeWith({type: 'otp'}))
.
To remove the allowRememberBrowser
checkbox with api.authentication.challengeWith
or api.authentication.challengeWithAny
, use the following code:
api.multifactor.enable('any', { allowRememberBrowser: false }); api.authentication.challengeWith({type: 'otp'})