Make client secret and bot tokens protected attributes so that someone doesn't spills their secrets accidentally

This commit is contained in:
thec0sm0s
2020-07-24 23:43:29 +05:30
parent 5e99ed9af9
commit d703937da5
2 changed files with 5 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ class DiscordOAuth2Session(_http.DiscordOAuth2HttpClient):
discord = self._make_session(state=session.get("DISCORD_OAUTH2_STATE"))
token = discord.fetch_token(
configs.DISCORD_TOKEN_URL,
client_secret=self.client_secret,
client_secret=self.__client_secret,
authorization_response=request.url
)
self._token_updater(token)