moto/issues/2672 | Formatted using black

This commit is contained in:
Franz See 2020-01-06 13:29:23 +08:00
commit a8e1a3bf08
2 changed files with 4 additions and 1 deletions

View file

@ -108,7 +108,9 @@ class CognitoIdpUserPool(BaseModel):
return user_pool_json
def create_jwt(self, client_id, username, token_use, expires_in=60 * 60, extra_data={}):
def create_jwt(
self, client_id, username, token_use, expires_in=60 * 60, extra_data={}
):
now = int(time.time())
payload = {
"iss": "https://cognito-idp.{}.amazonaws.com/{}".format(