UNPKG

@nevis-security/nevis-mobile-authentication-sdk-react

Version:

React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.

30 lines (28 loc) 906 B
"use strict"; /** * Copyright © 2023 Nevis Security AG. All rights reserved. */ import { TypedData } from './TypedData'; class PromptOptionsData { constructor(title, description, cancelButtonText) { this.title = title; this.description = description; this.cancelButtonText = cancelButtonText; } } export class TypedPromptOptions extends TypedData {} export class TypedBiometricPromptOptions extends TypedPromptOptions { type = 'BiometricPromptOptions'; constructor(wrapped) { super(); this.data = new PromptOptionsData(wrapped?.title, wrapped?.description, wrapped?.cancelButtonText); } } export class TypedDevicePasscodePromptOptions extends TypedPromptOptions { type = 'DevicePasscodePromptOptions'; constructor(wrapped) { super(); this.data = new PromptOptionsData(wrapped?.title, wrapped?.description); } } //# sourceMappingURL=TypedPromptOptions.js.map