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

Method destroy

src/client.ts:113–116  ·  view source on GitHub ↗

* Destroys the session data from the store * * @param sessionId - Optional session ID to destroy (defaults to current session) * * @example * await client.destroy() // Destroy current session * await client.destroy('abc123') // Destroy specific session

(sessionId?: string)

Source from the content-addressed store, hash-verified

111 * await client.destroy('abc123') // Destroy specific session
112 */
113 async destroy(sessionId?: string) {
114 debug('destroying session data during api request')
115 this.#store.destroy(sessionId || this.sessionId)
116 }
117
118 /**
119 * Loads session data from the session store

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.65

Tested by

no test coverage detected