Skip to content

Commit

Permalink
parse creds as dict not string
Browse files Browse the repository at this point in the history
  • Loading branch information
TechiError authored Aug 19, 2023
1 parent 64c7071 commit 0cd52e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/gdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self):
self.client_secret = udB.get_key("GDRIVE_CLIENT_SECRET")
self.folder_id = udB.get_key("GDRIVE_FOLDER_ID") or "root"
self.scope = "https://www.googleapis.com/auth/drive"
self.creds = udB.get_key("GDRIVE_AUTH_TOKEN") or {}
self.creds = json.loads(udB.get_key("GDRIVE_AUTH_TOKEN")) or {}
self.service_account = udB.get_key("GDRIVE_SERVICE_KEY")

def get_oauth2_url(self):
Expand Down

0 comments on commit 0cd52e9

Please sign in to comment.