UNPKG

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

Version:

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

37 lines (33 loc) 1.07 kB
"use strict"; /** * Copyright © 2023 Nevis Security AG. All rights reserved. */ /** * Error class indicating that a problem during a FIDO UAF operation occurred. */ export class FidoErrorCode { /** * The underlying FIDO UAF error type. */ /** * The description of the error. * * **NOTE** \ * Displaying the error description directly to the end user is not recommended. * It is advisable to handle errors in a more appropriate manner, such as providing translations for all supported languages and simplifying the error message to ensure it is understandable and actionable for the end-users. * * This is not a localized message and is targeted to developers in the context * of debugging/problem analysis. */ /** * Default constructor for {@link FidoErrorCode}. * * @param type the underlying FIDO UAF error type. * @param description the description of the error. */ constructor(type, description) { this.type = type; this.description = description; } } //# sourceMappingURL=FidoErrorCode.js.map