From 353e555176384625626f8368404bc81fc645bfd6 Mon Sep 17 00:00:00 2001 From: issork Date: Thu, 27 Jun 2024 18:39:01 +0200 Subject: [PATCH] fixed auth grant flow indent --- addons/gift/auth/grant_flows/authorization_code_grant_flow.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/gift/auth/grant_flows/authorization_code_grant_flow.gd b/addons/gift/auth/grant_flows/authorization_code_grant_flow.gd index 859692e..5fa1b70 100644 --- a/addons/gift/auth/grant_flows/authorization_code_grant_flow.gd +++ b/addons/gift/auth/grant_flows/authorization_code_grant_flow.gd @@ -20,7 +20,7 @@ func login(client_id : String, client_secret : String, auth_code : String = "", auth_code = await(get_authorization_code(client_id, scopes, force_verify)) if (http_client == null): http_client = HTTPClient.new() - http_client.connect_to_host("https://id.twitch.tv", -1, TLSOptions.client()) + http_client.connect_to_host("https://id.twitch.tv", -1, TLSOptions.client()) await(http_connected) http_client.request(HTTPClient.METHOD_POST, "/oauth2/token", ["Content-Type: application/x-www-form-urlencoded"], "client_id=%s&client_secret=%s&code=%s&grant_type=authorization_code&redirect_uri=%s" % [client_id, client_secret, auth_code, redirect_url]) print("Using auth token to login.")