(action: 'refresh' | 'login')
| 485 | } |
| 486 | |
| 487 | async #refreshToken(action: 'refresh' | 'login') { |
| 488 | try { |
| 489 | const record = apiManager.getAPIRecord(this.service.api.credential.type); |
| 490 | deepAssign(this.service.api.credential, await record[action]()); |
| 491 | apiManager.updateCredential(this.service.api.credential); |
| 492 | this.service.regenerateLastResponse(); |
| 493 | } catch (error) { |
| 494 | if (error.name != 'CancelledError') |
| 495 | alert(error.message); |
| 496 | } |
| 497 | } |
| 498 | } |
| 499 | |
| 500 | // Return the button tooltip for button mode. |
nothing calls this directly
no test coverage detected