()
| 444 | } |
| 445 | |
| 446 | async getAccessToken(): Promise<string> { |
| 447 | if (!this.sessionId) { |
| 448 | throw LoginError.userNotLoggedIn(); |
| 449 | } |
| 450 | const token = await this.sessionManager.getAccessToken(); |
| 451 | if (!token) throw LoginError.userNotLoggedIn(); |
| 452 | return token; |
| 453 | } |
| 454 | |
| 455 | async refreshSession(): Promise<void> { |
| 456 | const data = await this._authorizeSession(); |
no test coverage detected