UNPKG

alinea

Version:
31 lines (29 loc) 817 B
import "../chunks/chunk-NZLE2WMY.js"; // src/backend/Auth.ts import { HttpError } from "alinea/core/HttpError"; var AuthAction = /* @__PURE__ */ ((AuthAction2) => { AuthAction2["Status"] = "status"; AuthAction2["Handshake"] = "handshake"; AuthAction2["Login"] = "login"; AuthAction2["Logout"] = "logout"; AuthAction2["Refresh"] = "refresh"; return AuthAction2; })(AuthAction || {}); var AuthError = class extends HttpError { name = "AuthError"; constructor(message, options) { super(401, message, options); } }; var MissingCredentialsError = class extends AuthError { name = "MissingCredentialsError"; }; var InvalidCredentialsError = class extends AuthError { name = "InvalidCredentialsError"; }; export { AuthAction, AuthError, InvalidCredentialsError, MissingCredentialsError };