don't use multiline string for browser auth #23
@ -183,11 +183,7 @@ func get_token() -> void:
|
|||||||
if (scopes.size() > 0):
|
if (scopes.size() > 0):
|
||||||
scope += scopes[scopes.size() - 1]
|
scope += scopes[scopes.size() - 1]
|
||||||
scope = scope.uri_encode()
|
scope = scope.uri_encode()
|
||||||
OS.shell_open("https://id.twitch.tv/oauth2/authorize
|
OS.shell_open("https://id.twitch.tv/oauth2/authorize?response_type=code&client_id=" + client_id +"&redirect_uri=http://localhost:18297&scope=" + scope)
|
||||||
?response_type=code
|
|
||||||
&client_id=" + client_id +
|
|
||||||
"&redirect_uri=http://localhost:18297
|
|
||||||
&scope=" + scope)
|
|
||||||
server.listen(18297)
|
server.listen(18297)
|
||||||
print("Waiting for user to login.")
|
print("Waiting for user to login.")
|
||||||
while(!peer):
|
while(!peer):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user