From 881e29d7bb6e5f03dab89f05b68d1e5331fff1a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Thu, 22 Jun 2023 21:40:03 +0300 Subject: [PATCH] don't use multiline string for browser auth --- addons/gift/gift_node.gd | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/addons/gift/gift_node.gd b/addons/gift/gift_node.gd index d3ff9c0..fda5edc 100644 --- a/addons/gift/gift_node.gd +++ b/addons/gift/gift_node.gd @@ -183,11 +183,7 @@ func get_token() -> void: if (scopes.size() > 0): scope += scopes[scopes.size() - 1] scope = scope.uri_encode() - OS.shell_open("https://id.twitch.tv/oauth2/authorize - ?response_type=code - &client_id=" + client_id + - "&redirect_uri=http://localhost:18297 - &scope=" + scope) + OS.shell_open("https://id.twitch.tv/oauth2/authorize?response_type=code&client_id=" + client_id +"&redirect_uri=http://localhost:18297&scope=" + scope) server.listen(18297) print("Waiting for user to login.") while(!peer): -- 2.47.2