mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-29 22:57:16 +02:00
Fix auth re-login error updating vuex state
This commit is contained in:
@@ -951,8 +951,9 @@ export default {
|
|||||||
init() {
|
init() {
|
||||||
if (this.$route.query.serverConnectionConfigId) {
|
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
|
// 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)
|
const _serverConfig = this.serverConnectionConfigs.find((scc) => scc.id === this.$route.query.serverConnectionConfigId)
|
||||||
if (this.serverConfig) {
|
if (_serverConfig) {
|
||||||
|
this.serverConfig = { ..._serverConfig }
|
||||||
this.setForceRelogin(this.$route.query.error)
|
this.setForceRelogin(this.$route.query.error)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user