@foal/core
Version:
Full-featured Node.js framework, with no complexity
28 lines (27 loc) • 865 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SessionStore = exports.Store = exports.SessionAlreadyExists = void 0;
class SessionAlreadyExists extends Error {
name = 'SessionAlreadyExists';
}
exports.SessionAlreadyExists = SessionAlreadyExists;
/**
* Store used to create, read, update and delete sessions.
*
* All session stores must inherit this abstract class.
*
* When this class is used with the `@dependency` decorator,
* it returns the `ConcreteSessionStore` class from the file or the package specified
* with the configuration key "settings.session.store".
*
* @export
* @abstract
* @class Store
*/
class Store {
static concreteClassConfigPath = 'settings.session.store';
static concreteClassName = 'ConcreteSessionStore';
boot() { }
}
exports.Store = Store;
exports.SessionStore = Store;