MCPcopy Create free account
hub / github.com/adonisjs/session / constructor

Method constructor

src/session_middleware.ts:138–147  ·  view source on GitHub ↗

* Creates a new session middleware instance * * @param config - Session configuration with store settings * @param emitter - Event emitter service

(
    config: SessionConfig & {
      store: keyof KnownStores
      stores: KnownStores
    },
    emitter: EmitterService
  )

Source from the content-addressed store, hash-verified

136 * @param emitter - Event emitter service
137 */
138 constructor(
139 config: SessionConfig & {
140 store: keyof KnownStores
141 stores: KnownStores
142 },
143 emitter: EmitterService
144 ) {
145 this.#config = config
146 this.#emitter = emitter
147 }
148
149 /**
150 * Handles the HTTP request by initializing session and committing changes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected