moved id+secret outside code

This commit is contained in:
Brandon4466
2024-04-27 20:07:40 -07:00
parent 5237bb8193
commit 75057d6bb6
5 changed files with 8 additions and 5 deletions

View File

@@ -10,10 +10,11 @@ import syncedlyrics
app = Flask(__name__)
if os.path.exists('client_id'):
with open('code', 'r') as file:
with open('client_id', 'r') as file:
client_id = file.read()
print(client_id)
if os.path.exists('client_secret'):
with open('code', 'r') as file:
with open('client_secret', 'r') as file:
client_secret = file.read()
redirect_uri = 'http://127.0.0.1:8888/callback'
encoded_creds = base64.b64encode(client_id.encode() + b':' + client_secret.encode()).decode("utf-8")