fixed auth grant flow indent
All checks were successful
📊 Static Checks / File formatting (file_format.sh) (push) Successful in 28s

This commit is contained in:
Max Kross 2024-06-27 18:39:01 +02:00
parent 617490d17b
commit 353e555176

View File

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