()
| 268 | } |
| 269 | |
| 270 | async logout(): Promise<void> { |
| 271 | if (!this.sessionId) throw LoginError.userNotLoggedIn(); |
| 272 | await this.sessionManager.logout(); |
| 273 | this.clearState(); |
| 274 | } |
| 275 | |
| 276 | async enableMFA(params: Partial<LoginParams>): Promise<boolean> { |
| 277 | if (!this.sessionId) throw LoginError.userNotLoggedIn(); |
no test coverage detected