Skip to content

Improve jwt.decode key doc #198

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

Merged
merged 2 commits into from
May 28, 2025
Merged

Conversation

erny
Copy link
Contributor

@erny erny commented Nov 28, 2020

PR for #96

@erny
Copy link
Contributor Author

erny commented Nov 28, 2020

Perhaps we should add some tests here?

@codecov
Copy link

codecov bot commented Nov 28, 2020

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.51%. Comparing base (a2a4c31) to head (03dd4ce).
Report is 73 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #198   +/-   ##
=======================================
  Coverage   93.51%   93.51%           
=======================================
  Files          16       16           
  Lines        1728     1728           
=======================================
  Hits         1616     1616           
  Misses        112      112           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@asherf asherf closed this May 28, 2025
@asherf asherf reopened this May 28, 2025
@asherf asherf requested a review from Copilot May 28, 2025 17:12
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the documentation for the jwt.decode function’s key parameter by providing more detailed examples of accepted key formats.

  • Updated the accepted types for the key parameter from "str or dict" to "str or iterable"
  • Expanded the documentation to list multiple acceptable key formats including tuples, lists, JSON strings, and JWK sets

individual JWK or JWK set.
key (str or iterable): A key to attempt to verify the payload with.
This can be simple string with an individual key (e.g. "a1234"),
a tuple or list of keys (e.g. ("a1234...", "b3579"),
Copy link
Preview

Copilot AI May 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tuple example appears to be missing a closing parenthesis. Consider ensuring that all examples have matching opening and closing parentheses for clarity.

Copilot uses AI. Check for mistakes.

@asherf asherf merged commit 393c374 into mpdavis:master May 28, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants