Introduce envoronment variables and refresh secrets

This commit is contained in:
Hepatica
2024-08-18 21:05:28 +02:00
parent 6ed7f928c6
commit ae12261938
2 changed files with 12 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ public:
std::string command = "curl --location https://discord.com/api/oauth2/token "
"--header \"Content-Type: application/x-www-form-urlencoded\" "
"--data-urlencode \"client_id=1273414933874479185\" "
"--data-urlencode \"client_secret=S_vG4frjIxWoi8mic_GlcxUO0aWxXwRJ\" "
"--data-urlencode \"client_secret=" + std::string(std::getenv("DiscordAppSecret")) + "\" "
"--data-urlencode \"grant_type=authorization_code\" "
"--data-urlencode \"code=" + auth_code_processed + "\" "
"--data-urlencode \"redirect_uri=https://spcloud.almavid.ru\"";