everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
22 lines (20 loc) • 879 B
JavaScript
const require_session = require('./session.cjs');
let effect = require("effect");
//#region src/services/auth/session-store.ts
/**
* The `.bos/session.json` handle as a Context.Service tag (ticket #423): the
* auth handlers yield the store instead of importing the session module
* directly, keeping the login/logout flows swappable in tests.
*/
var SessionStore = class SessionStore extends effect.Context.Service()("everything-dev/auth/session-store") {
static Live = effect.Layer.succeed(this, SessionStore.of({
read: require_session.readSessionHandle,
write: require_session.writeSessionHandle,
delete: require_session.deleteSessionHandle,
removePublishedKeyFile: require_session.removePublishedKeyFile,
nearCredentialsPath: require_session.nearCredentialsPath
}));
};
//#endregion
exports.SessionStore = SessionStore;
//# sourceMappingURL=session-store.cjs.map