Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo & improve formatting #18

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyjwt_key_fetcher/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def __init__(self, iss: str = "https://example.com", aud: str = "default_audienc
self.iss = iss
self.aud = aud
self.keys: List[RSAPrivateKeyWrapper] = []

self.generate_new_key()

def generate_new_key(self):
Expand Down
2 changes: 1 addition & 1 deletion pyjwt_key_fetcher/tests/test_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def test_fetching_after_issuing_new_key(create_provider_fetcher_and_client
# Let's simulate the cache expired
await pyjwt_key_fetcher.provider.Provider._fetch_jwk_map.cache.clear()

# Now the the new token can be verified
# Now the new token can be verified
key_entry_2 = await fetcher.get_key(token_2)
jwt.decode(token_2, audience=provider.aud, **key_entry_2)

Expand Down