From f4f4debf7f905ab1c64a0af5f393e554ddfb427e Mon Sep 17 00:00:00 2001 From: RemixDev Date: Wed, 9 Mar 2022 12:27:11 +0100 Subject: [PATCH] Added support for singleUser option --- src/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 6c25989..d8c4712 100644 --- a/src/app.js +++ b/src/app.js @@ -58,7 +58,12 @@ async function startApp() { store.dispatch('setSpotifyStatus', spotifyStatus).catch(console.error) let arl = localStorage.getItem('arl') - const accessToken = localStorage.getItem('accessToken') + let accessToken = localStorage.getItem('accessToken') + + if (connectResponse.singleUser) { + if (connectResponse.singleUser.arl) arl = connectResponse.singleUser.arl + if (connectResponse.singleUser.accessToken) accessToken = connectResponse.singleUser.accessToken + } if (connectResponse.autologin) { console.info('Autologin')