* 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)
| 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 |