Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 28, 2023
1 parent 6c66ca6 commit a4ef531
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions oauthenticator/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,7 @@ def _client_secret_default(self):

access_token_expiration_env = "OAUTH_ACCESS_TOKEN_EXPIRATION"
access_token_expiration = Unicode(
config=True,
help="""Default expiration, in seconds, of the access token."""
config=True, help="""Default expiration, in seconds, of the access token."""
)

def _access_token_expiration_default(self):
Expand Down Expand Up @@ -813,7 +812,9 @@ async def refresh_user(self, user, handler=None, **kwargs):
)
return True

refresh_token_params = self.build_refresh_token_request_params(auth_state['refresh_token'])
refresh_token_params = self.build_refresh_token_request_params(
auth_state['refresh_token']
)
return await self._oauth_call(handler, refresh_token_params)

async def _oauth_call(self, handler, params, data=None):
Expand Down

0 comments on commit a4ef531

Please sign in to comment.