MCPcopy
hub / github.com/redis/node-redis / stop

Method stop

packages/client/lib/authx/token-manager.ts:291–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289 }
290
291 private stop(): void {
292
293 if (this.refreshTimeout) {
294 clearTimeout(this.refreshTimeout);
295 this.refreshTimeout = null;
296 }
297
298 this.listener = null;
299 this.currentToken = null;
300 this.retryAttempt = 0;
301 }
302
303 /**
304 * Returns the current token or null if no token is available.

Callers 2

startMethod · 0.95
refreshMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected