Fix auth re-login error updating vuex state

This commit is contained in:
advplyr
2026-01-29 16:41:16 -06:00
parent b2c2b625e3
commit a80722ff79
+3 -2
View File
@@ -951,8 +951,9 @@ export default {
init() {
if (this.$route.query.serverConnectionConfigId) {
// Handle force re-login for servers using new JWT auth but still using an old token OR refresh token failed
this.serverConfig = this.serverConnectionConfigs.find((scc) => scc.id === this.$route.query.serverConnectionConfigId)
if (this.serverConfig) {
const _serverConfig = this.serverConnectionConfigs.find((scc) => scc.id === this.$route.query.serverConnectionConfigId)
if (_serverConfig) {
this.serverConfig = { ..._serverConfig }
this.setForceRelogin(this.$route.query.error)
return
} else {