UNPKG

@shard-auth/client

Version:

Next-generation API authentication without secret keys - MPC-based authentication with FROST threshold signatures

39 lines 1.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthenticationError = exports.NetworkError = exports.SignatureGenerationError = exports.SignatureSessionError = exports.ShareNotFoundError = void 0; class ShareNotFoundError extends Error { constructor(message) { super(message || 'Share not found'); this.name = 'ShareNotFoundError'; } } exports.ShareNotFoundError = ShareNotFoundError; class SignatureSessionError extends Error { constructor(message) { super(message || 'Failed to create signature session'); this.name = 'SignatureSessionError'; } } exports.SignatureSessionError = SignatureSessionError; class SignatureGenerationError extends Error { constructor(message) { super(message || 'Failed to generate signature'); this.name = 'SignatureGenerationError'; } } exports.SignatureGenerationError = SignatureGenerationError; class NetworkError extends Error { constructor(message) { super(message || 'Network error occurred'); this.name = 'NetworkError'; } } exports.NetworkError = NetworkError; class AuthenticationError extends Error { constructor(message) { super(message || 'Authentication failed'); this.name = 'AuthenticationError'; } } exports.AuthenticationError = AuthenticationError; //# sourceMappingURL=errors.js.map