Skip to content

Commit

Permalink
Update gdrive.py
Browse files Browse the repository at this point in the history
  • Loading branch information
buddhhu authored Aug 18, 2023
1 parent a4719ef commit 5394324
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 @@ -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)
Expand Down

0 comments on commit 5394324

Please sign in to comment.