-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat: add get_claims
method
#681
feat: add get_claims
method
#681
Conversation
Pull Request Test Coverage Report for Build 13930276879Details
💛 - Coveralls |
5eed291
to
46c4c37
Compare
# try fetching from the cache. | ||
jwk = next( | ||
(jwk for jwk in self._jwks["keys"] if jwk["kid"] == kid), | ||
None, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just want to check, how long is this kept in the cache?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the application lifecycle, how long it is supposed to be in the cache?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we've decided to go with 10mins in c7a1903
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hf talking with @kangmingtay about this, decided to put a TTL on the cache, please review it again c7a1903
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good! I'll reach out to you on how to get an asymmetric JWT on staging to try it!
3c46e99
to
c7a1903
Compare
Is the |
@silentworks yes it is, we should have a test for that, let me check, if not I'll add one. |
@silentworks please review again. |
What kind of change does this PR introduce?
Add
get_claims
method for verifying both symmetric and asymmetric JWT and returning whole set of claimsReference PR: supabase/auth-js#1030