fix default scopes

This commit is contained in:
2025-03-04 03:49:19 -08:00
parent 868b57cd11
commit a01835b818
+1 -1
View File
@@ -54,7 +54,7 @@ export function set_refresh_timeout(client_id,tokens){
},tokens.expires_in*999)
}
export async function get_tokens(client_id,scope=null,redirect_uri=location.origin+location.pathname,auth_return=false){
export async function get_tokens(client_id,scope='',redirect_uri=location.origin+location.pathname,auth_return=false){
token=await TwitchAuth.getUserToken(client_id,...scope.split(' ')).then(validate_tokens)
set_refresh_timeout(client_id,token)
return token