From 79d8ccbf52aef57852ae6a0886a308509eccf785 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 11 Jul 2025 16:00:48 -0500 Subject: [PATCH] Update login query param to x-return-tokens header --- components/connection/ServerConnectForm.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/connection/ServerConnectForm.vue b/components/connection/ServerConnectForm.vue index 9ede75a3..8b799da2 100644 --- a/components/connection/ServerConnectForm.vue +++ b/components/connection/ServerConnectForm.vue @@ -627,7 +627,12 @@ export default { }) }, requestServerLogin() { - return this.postRequest(`${this.serverConfig.address}/login?return_tokens=true`, { username: this.serverConfig.username, password: this.password || '' }, this.serverConfig.customHeaders, 20000) + const headers = { + // Tells the Abs server to return the refresh token + 'x-return-tokens': 'true', + ...(this.serverConfig.customHeaders || {}) + } + return this.postRequest(`${this.serverConfig.address}/login`, { username: this.serverConfig.username, password: this.password || '' }, headers, 20000) .then((data) => { if (!data.user) { console.error(data.error)