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

Method create

factories/session_middleware_factory.ts:65–68  ·  view source on GitHub ↗

* Creates an instance of the session middleware

()

Source from the content-addressed store, hash-verified

63 * Creates an instance of the session middleware
64 */
65 async create() {
66 const config = await defineConfig(this.#config).resolver(this.#getApp())
67 return new SessionMiddleware(config, this.#getEmitter())
68 }
69}

Callers 15

#getAppMethod · 0.80
defineConfigFunction · 0.80
define_config.tsFile · 0.80
configure.spec.tsFile · 0.80
session.spec.tsFile · 0.80
requestHandlerFunction · 0.80

Calls 3

#getAppMethod · 0.95
#getEmitterMethod · 0.95
defineConfigFunction · 0.90

Tested by 2

requestHandlerFunction · 0.64
createDatabaseFunction · 0.64