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.")