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)