Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,11 @@ import requests
|
|
3 |
import os
|
4 |
|
5 |
app = Flask(__name__)
|
6 |
-
app.secret_key = '
|
7 |
|
8 |
def get_access_token(code):
|
9 |
-
client_id = '
|
10 |
-
client_secret = '
|
11 |
redirect_uri = 'https://example.com/login'
|
12 |
|
13 |
url = f'https://oauth.vk.com/access_token?client_id={client_id}&client_secret={client_secret}&redirect_uri={redirect_uri}&code={code}'
|
|
|
3 |
import os
|
4 |
|
5 |
app = Flask(__name__)
|
6 |
+
app.secret_key = os.getenv('SECRET_KEY') # Замените на ваш секретный ключ
|
7 |
|
8 |
def get_access_token(code):
|
9 |
+
client_id = os.getenv('APP_ID')
|
10 |
+
client_secret = os.getenv('APP_SECRET')
|
11 |
redirect_uri = 'https://example.com/login'
|
12 |
|
13 |
url = f'https://oauth.vk.com/access_token?client_id={client_id}&client_secret={client_secret}&redirect_uri={redirect_uri}&code={code}'
|