moved id+secret outside code
This commit is contained in:
1
client_secret
Normal file
1
client_secret
Normal file
@@ -0,0 +1 @@
|
|||||||
|
9893dfb6d9eb43eebf082f9173ce937c
|
||||||
@@ -9,9 +9,12 @@ import syncedlyrics
|
|||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
if os.path.exists('client_id'):
|
||||||
client_id = '1cb8bc27872c4bcaaad0e95f123b4f7d'
|
with open('code', 'r') as file:
|
||||||
client_secret = '9893dfb6d9eb43eebf082f9173ce937c'
|
client_id = file.read()
|
||||||
|
if os.path.exists('client_secret'):
|
||||||
|
with open('code', 'r') as file:
|
||||||
|
client_secret = file.read()
|
||||||
redirect_uri = 'http://127.0.0.1:8888/callback'
|
redirect_uri = 'http://127.0.0.1:8888/callback'
|
||||||
encoded_creds = base64.b64encode(client_id.encode() + b':' + client_secret.encode()).decode("utf-8")
|
encoded_creds = base64.b64encode(client_id.encode() + b':' + client_secret.encode()).decode("utf-8")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user