UNPKG

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

Version:

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

42 lines (38 loc) 1.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OutOfBandPayloadDecryptionError = void 0; var _OutOfBandPayloadError = require("./OutOfBandPayloadError"); /** * Copyright © 2023 Nevis Security AG. All rights reserved. */ /** * The encrypted contents of the out-of-band payload could not be decrypted. * * This occurs for instance when the keys that are used to decrypt the out-of-band payload are deleted. * The problem can also occur in the case where the user is trying to redeem a token that was generated * for another mobile device: a malicious user trying to authenticate using the QR code generated by another * user, or a user with multiple devices trying to scan the QR using the wrong device. */ class OutOfBandPayloadDecryptionError extends _OutOfBandPayloadError.OutOfBandPayloadError { /** * Provides details about the error that occurred. */ /** * The exception (if any) that caused this error. */ /** * The default constructor. * * @param description provides details about the error that occurred. * @param cause the exception (if any) that caused this error. */ constructor(description, cause) { super(); this.description = description; this.cause = cause; } } exports.OutOfBandPayloadDecryptionError = OutOfBandPayloadDecryptionError; //# sourceMappingURL=OutOfBandPayloadDecryptionError.js.map