Added support for singleUser option

This commit is contained in:
RemixDev 2022-03-09 12:27:11 +01:00
parent 283bb5fa0d
commit f4f4debf7f

View File

@ -58,7 +58,12 @@ async function startApp() {
store.dispatch('setSpotifyStatus', spotifyStatus).catch(console.error) store.dispatch('setSpotifyStatus', spotifyStatus).catch(console.error)
let arl = localStorage.getItem('arl') 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) { if (connectResponse.autologin) {
console.info('Autologin') console.info('Autologin')