Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83f3217565 |
@@ -4,7 +4,9 @@ import * as TwitchAuth from "./TwitchAuth";
|
||||
|
||||
async function getTwurpleProxy(token: TwitchAuth.TwitchToken): Promise<AccessTokenWithUserId> {
|
||||
if (!token.user_id) {
|
||||
const refresh_token=token.refresh_token
|
||||
token = await TwitchAuth.validateToken(token.access_token)
|
||||
token.refresh_token=refresh_token
|
||||
}
|
||||
return new Proxy(token, {
|
||||
get(target, name, receiver) {
|
||||
|
||||
Reference in New Issue
Block a user