Skip to content

Conversation

arithmetic1728
Copy link
Contributor

  1. Rename _helper.CLOCK_SKEW to _helper.REFRESH_THRESHOLD. This value is for client to decide when to refresh a token.
  2. Add a clock_skew_in_seconds keyword parameter (default value is 0) to jwt.decode, and remove the hard coded _helper.CLOCK_SKEW in the logic. The reason is jwt.decode is for server usage to validate iat/exp value. We should leave the clock skew to the server since this is server specific.

@arithmetic1728 arithmetic1728 requested review from silvolu and a team as code owners September 8, 2021 06:35
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants