fix context for setToken

This commit is contained in:
2025-01-27 15:24:27 +00:00
parent 51ab97c156
commit a8782db14c
+2 -2
View File
@@ -39,7 +39,7 @@ export default class SugoiAuthProvider {
this.clientId=client_id
}
#setToken(token){
#setToken=(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(token=>this.#token=token)
this.#token=this.addUser(...(scopeSets[0]||[])).then(getTwurpleProxy).then(this.#setToken)
return this.#token
}