expire and remove secrets

This commit is contained in:
Alberto Xamin 2024-02-23 10:45:52 +00:00
parent 2ddf18b8c0
commit 4eb1a82ab7
No known key found for this signature in database
GPG Key ID: 5ABFCD8A22EA6F5D

View File

@ -58,7 +58,7 @@ for file in [f for f in os.listdir(".") if ".js" in f or ".map" in f or ".html"
static_files[f"/{file}"] = f"./{file}" static_files[f"/{file}"] = f"./{file}"
HASTEBIN_HEADERS = { HASTEBIN_HEADERS = {
"Authorization": "Bearer 2cf615e88992970f3396663c5bfb2f599151192bcef5fa99f5569c2e29617ba7cdcfa5df14f90afc61bcf0fe6e475ae49cba98ebded3e0b7b3fdf0c648c76496", "Authorization": "Bearer " + os.getenv("HASTEBIN_TOKEN", ""),
"content-type": "text/plain", "content-type": "text/plain",
} }
@ -1290,7 +1290,7 @@ def discord_auth(sid, data):
"https://discord.com/api/oauth2/token", "https://discord.com/api/oauth2/token",
data={ data={
"client_id": "1059452581027532880", "client_id": "1059452581027532880",
"client_secret": "Mc8ZlMQhayzi1eOqWFtGHs3L0iXCzaEu", "client_secret": os.getenv("DISCORD_SECRET", ""),
"grant_type": "authorization_code", "grant_type": "authorization_code",
"redirect_uri": data["origin"], "redirect_uri": data["origin"],
"code": data["code"], "code": data["code"],