@nevis-security/nevis-mobile-authentication-sdk-react
Version:
React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.
42 lines (38 loc) • 1.2 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.FidoErrorCode = void 0;
/**
* Copyright © 2023 Nevis Security AG. All rights reserved.
*/
/**
* Error class indicating that a problem during a FIDO UAF operation occurred.
*/
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;
}
}
exports.FidoErrorCode = FidoErrorCode;
//# sourceMappingURL=FidoErrorCode.js.map
;