Skip to content

Commit

Permalink
Remove now unused mypy ignores.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Sep 12, 2023
1 parent a6f8d9e commit f6f34a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,12 @@ def create_bearer_token(
# Maybe we should use something custom instead.
iss=provider_name,
)
return jwt.encode(payload, self.bearer_token_signing_secret, algorithm="HS256") # type: ignore[arg-type]
return jwt.encode(payload, self.bearer_token_signing_secret, algorithm="HS256")

def decode_bearer_token(self, token: str) -> Tuple[str, str]:
"""Extract auth provider name and access token from JSON web token."""
decoded = jwt.decode(
token, self.bearer_token_signing_secret, algorithms=["HS256"] # type: ignore[arg-type]
token, self.bearer_token_signing_secret, algorithms=["HS256"]
)
provider_name = decoded["iss"]
token = decoded["token"]
Expand Down

0 comments on commit f6f34a5

Please sign in to comment.