UNPKG

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

Version:

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

38 lines (36 loc) 1.29 kB
"use strict"; /** * Copyright © 2023 Nevis Security AG. All rights reserved. */ import { TypedData } from './TypedData'; class PromptOptionsData { constructor(title, description, cancelButtonText, fallbackButtonText) { this.title = title; this.description = description; this.cancelButtonText = cancelButtonText; this.fallbackButtonText = fallbackButtonText; } } 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, wrapped?.fallbackButtonText); } } export class TypedDevicePasscodePromptOptions extends TypedPromptOptions { type = 'DevicePasscodePromptOptions'; constructor(wrapped) { super(); this.data = new PromptOptionsData(wrapped?.title, wrapped?.description); } } export class TypedFingerprintPromptOptions extends TypedPromptOptions { type = 'FingerprintPromptOptions'; constructor(wrapped) { super(); this.data = new PromptOptionsData(undefined, wrapped?.description, wrapped?.cancelButtonText, wrapped?.fallbackButtonText); } } //# sourceMappingURL=TypedPromptOptions.js.map