@okta/okta-signin-widget
Version:
The Okta Sign-In Widget
29 lines (23 loc) • 730 B
JavaScript
import { loc } from '@okta/courage';
import { BaseForm } from '../../internals';
import BaseAuthenticatorView from '../../components/BaseAuthenticatorView';
const Body = BaseForm.extend(Object.assign(
{
className: 'mfa-verify-custom-otp',
title() {
const vendorName =
this.options.appState.getAuthenticatorDisplayName() ||
loc('oie.custom_otp.authenticator.default.vendorName', 'login');
return loc('oie.verify.custom_otp.title', 'login', [vendorName]);
},
subtitle() {
return loc('oie.verify.custom_otp.description', 'login');
},
save() {
return loc('mfa.challenge.verify', 'login');
},
},
));
export default BaseAuthenticatorView.extend({
Body,
});