File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/main/kotlin/com/coder/gateway/views/steps Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 7
7
### Added
8
8
- ability to open a template in the Dashboard
9
9
- ability to sort by workspace name, or by template name or by workspace status
10
+ - a new token is requested when the one persisted is expired
10
11
11
12
### Changed
12
13
- renamed the plugin from ` Coder Gateway ` to ` Gateway `
Original file line number Diff line number Diff line change @@ -319,7 +319,13 @@ class CoderWorkspacesStepView(val enableNextButtonCallback: (Boolean) -> Unit) :
319
319
tfUrl?.text = url
320
320
321
321
poller?.cancel()
322
- loginAndLoadWorkspace(token)
322
+ try {
323
+ coderClient.initClientSession(url.toURL(), token)
324
+ loginAndLoadWorkspace(token)
325
+ } catch (e: AuthenticationResponseException ) {
326
+ // probably the token is expired
327
+ askTokenAndOpenSession()
328
+ }
323
329
}
324
330
}
325
331
updateWorkspaceActions()
You can’t perform that action at this time.
0 commit comments