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

Feat/addedISJWTExpiriation #2315

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

P-1000
Copy link

@P-1000 P-1000 commented Oct 7, 2023

I have added a new function called isJWTExpiration. This function is designed to check if a JSON Web Token (JWT) has expired based on its "exp" (expiration) claim. It parses the JWT payload, extracts the "exp" claim, and compares it to the current timestamp to determine if the token has expired.

#2298

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

@codecov
Copy link

codecov bot commented Oct 7, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (b958bd7) 99.95% compared to head (75e36d4) 99.55%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2315      +/-   ##
==========================================
- Coverage   99.95%   99.55%   -0.41%     
==========================================
  Files         107      108       +1     
  Lines        2454     2461       +7     
  Branches      619      621       +2     
==========================================
- Hits         2453     2450       -3     
- Misses          0       10      +10     
  Partials        1        1              
Files Coverage Δ
src/index.js 100.00% <100.00%> (ø)
src/lib/isJWTExpiration.js 9.09% <9.09%> (ø)

... and 2 files with indirect coverage changes

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

@P-1000 P-1000 changed the title Feat/added is jwt expiration Feat/addedISJWTExpiriation Oct 7, 2023
Copy link
Author

@P-1000 P-1000 left a comment

Choose a reason for hiding this comment

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

ISJWTEXPIRATION FUNCTION CHECKS ON BASIS OF EXP FLAG

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.

1 participant