From 539432434d356867ca2298f6cf0d8f9de9da2ac5 Mon Sep 17 00:00:00 2001 From: Amit Sharma Date: Fri, 18 Aug 2023 23:21:05 +0530 Subject: [PATCH] Update gdrive.py --- utilities/gdrive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/gdrive.py b/utilities/gdrive.py index 7279e7ee9..058a8bfc2 100644 --- a/utilities/gdrive.py +++ b/utilities/gdrive.py @@ -88,7 +88,7 @@ async def get_access_token(self, code=None) -> dict: self.creds["expires_in"] = time.time() + 3590 udB.set_key("GDRIVE_AUTH_TOKEN", self.creds) return self.creds - resp = await self._session.post("https://oauth2.googleapis.com/token", data={"client_id": self.client_id, "client_secret": self.client_secret, "redirect_uri": "http://localhost", "grant_type": "authorization_code", "code": code}, headers={"Content-Type": "application/x-www-form-urlencoded"}) + resp = await self._session.post("https://oauth2.googleapis.com/token", data={"client_id": self.client_id, "client_secret": self.client_secret, "redirect_uri": "https://plugins.xditya.me/auth", "grant_type": "authorization_code", "code": code}, headers={"Content-Type": "application/x-www-form-urlencoded"}) self.creds = await resp.json() self.creds["expires_in"] = time.time() + 3590 udB.set_key("GDRIVE_AUTH_TOKEN", self.creds)