UNPKG

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

Version:

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

33 lines (28 loc) 688 B
/** * Copyright © 2023-2024 Nevis Security AG. All rights reserved. */ import { ChannelMessage } from '../ChannelMessage'; /** * Holds the parameters of the PIN verification call. */ export class PinVerificationMessage extends ChannelMessage { /** * The identifier of the operation. */ operationId: string; /** * The PIN parameter of the call. */ pin: string[]; /** * Default constructor for {@link PinVerificationMessage}. * * @param operationId the identifier of the operation. * @param pin the PIN parameter of the call. */ constructor(operationId: string, pin: string) { super(); this.operationId = operationId; this.pin = Array.from(pin); } }