Don't redirect on twurple token request

This commit is contained in:
2025-01-29 06:27:49 +00:00
parent a8782db14c
commit ca977afc23
2 changed files with 20 additions and 4 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ export default class SugoiAuthProvider {
}
#setToken=(token)=>{
this.#token=token
this.#token=token
return token
}
@@ -86,7 +86,7 @@ export default class SugoiAuthProvider {
return this.#token
}
}
this.#token=this.addUser(...(scopeSets[0]||[])).then(getTwurpleProxy).then(this.#setToken)
this.#token=TwitchAuth.getUserTokenPassive(...(scopeSets[0]||[])).then(getTwurpleProxy).then(this.#setToken)
return this.#token
}