UNPKG

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

Version:

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

40 lines (34 loc) 861 B
/** * Copyright © 2024 Nevis Security AG. All rights reserved. */ import { ChannelMessage } from '../ChannelMessage'; /** * Holds the parameters of the password change call. */ export class PasswordsChangeMessage extends ChannelMessage { /** * The identifier of the operation. */ operationId: string; /** * The old password. */ oldPassword: string[]; /** * The new password. */ newPassword: string[]; /** * Default constructor for {@link PasswordsChangeMessage}. * * @param operationId the identifier of the operation. * @param oldPassword the old password. * @param newPassword the new password. */ constructor(operationId: string, oldPassword: string, newPassword: string) { super(); this.operationId = operationId; this.oldPassword = Array.from(oldPassword); this.newPassword = Array.from(newPassword); } }