@clerk/shared
Version:
Internal package utils used by the Clerk SDKs
31 lines (29 loc) • 715 B
JavaScript
//#region src/errors/emailLinkError.ts
var EmailLinkError = class EmailLinkError extends Error {
code;
constructor(code) {
super(code);
this.code = code;
this.name = "EmailLinkError";
Object.setPrototypeOf(this, EmailLinkError.prototype);
}
};
/**
* @deprecated Use `EmailLinkErrorCodeStatus` instead.
*
* @internal
*/
const EmailLinkErrorCode = {
Expired: "expired",
Failed: "failed",
ClientMismatch: "client_mismatch"
};
const EmailLinkErrorCodeStatus = {
Expired: "expired",
Failed: "failed",
ClientMismatch: "client_mismatch"
};
//#endregion
exports.EmailLinkError = EmailLinkError;
exports.EmailLinkErrorCode = EmailLinkErrorCode;
exports.EmailLinkErrorCodeStatus = EmailLinkErrorCodeStatus;