@kiryano/etherealotp
Version:
A library for two-factor authentication using Twilio and Speakeasy.
15 lines (14 loc) • 478 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TokenGenerationError = void 0;
/**
* Represents errors related to token generation failures.
*/
class TokenGenerationError extends Error {
constructor(message) {
super(`TokenGenerationError: ${message}`);
this.name = 'TokenGenerationError';
Object.setPrototypeOf(this, TokenGenerationError.prototype);
}
}
exports.TokenGenerationError = TokenGenerationError;