supertokens-node
Version:
NodeJS driver for SuperTokens core
20 lines (19 loc) • 508 B
TypeScript
import STError from "../../error";
export default class SessionError extends STError {
static FIELD_ERROR: "FIELD_ERROR";
constructor(
options:
| {
type: "FIELD_ERROR";
payload: {
id: string;
error: string;
}[];
message: string;
}
| {
type: "BAD_INPUT_ERROR";
message: string;
}
);
}