Spaces:
Sleeping
Sleeping
Update google_auth.py
Browse files- google_auth.py +2 -0
google_auth.py
CHANGED
|
@@ -2,9 +2,11 @@ from google.oauth2.credentials import Credentials
|
|
| 2 |
from googleapiclient.discovery import build
|
| 3 |
from google_auth_oauthlib.flow import InstalledAppFlow
|
| 4 |
import os
|
|
|
|
| 5 |
# Define OAuth 2.0 scopes
|
| 6 |
SCOPES = os.getenv('Google_scopes')
|
| 7 |
config = os.getenv('Google_Secret')
|
|
|
|
| 8 |
def auth():
|
| 9 |
api_service_name = "drive"
|
| 10 |
api_version = "v3"
|
|
|
|
| 2 |
from googleapiclient.discovery import build
|
| 3 |
from google_auth_oauthlib.flow import InstalledAppFlow
|
| 4 |
import os
|
| 5 |
+
import json
|
| 6 |
# Define OAuth 2.0 scopes
|
| 7 |
SCOPES = os.getenv('Google_scopes')
|
| 8 |
config = os.getenv('Google_Secret')
|
| 9 |
+
config = json.loads(config)
|
| 10 |
def auth():
|
| 11 |
api_service_name = "drive"
|
| 12 |
api_version = "v3"
|