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 77### Added
88- ability to open a template in the Dashboard
99- 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
1011
1112### Changed
1213- 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) :
319319 tfUrl?.text = url
320320
321321 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+ }
323329 }
324330 }
325331 updateWorkspaceActions()
You can’t perform that action at this time.
0 commit comments