()
| 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. |