Skip to content

Reduce Token Fetch Window#1805

Merged
ajimae merged 1 commit intomasterfrom
fix/reduce-token-fetch-window
Aug 23, 2022
Merged

Reduce Token Fetch Window#1805
ajimae merged 1 commit intomasterfrom
fix/reduce-token-fetch-window

Conversation

@ajimae
Copy link
Copy Markdown
Member

@ajimae ajimae commented Aug 23, 2022

Summary

  • reduce token fetch window from 2 hours to 5 minutes
  • add changeset to release changes

Description

Reduce the window period the SDK should fetch a new token to accommodate for the new 1 hours token validity period.

Related Issues

Jira

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Aug 23, 2022

🦋 Changeset detected

Latest commit: e7980e5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@commercetools/sdk-middleware-auth Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ajimae ajimae force-pushed the fix/reduce-token-fetch-window branch from a680001 to a7a1e27 Compare August 23, 2022 11:09
Copy link
Copy Markdown

@briantomkins briantomkins left a comment

Choose a reason for hiding this comment

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

Thanks
Cant comment on the userOptions change. Expiration looks good

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 23, 2022

Codecov Report

Merging #1805 (e7980e5) into master (f6e1ba1) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1805   +/-   ##
=======================================
  Coverage   94.62%   94.62%           
=======================================
  Files         139      139           
  Lines        4854     4854           
  Branches     1328     1328           
=======================================
  Hits         4593     4593           
  Misses        258      258           
  Partials        3        3           
Impacted Files Coverage Δ
packages/sdk-middleware-auth/src/base-auth-flow.js 94.39% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ajimae
Copy link
Copy Markdown
Member Author

ajimae commented Aug 23, 2022

Thanks Cant comment on the userOptions change. Expiration looks good

It's code formatting, let me revert it.

Thanks

@ajimae ajimae force-pushed the fix/reduce-token-fetch-window branch from a7a1e27 to 16c070a Compare August 23, 2022 11:35
- reduce token fetch window from 2 hours to 5 minutes
- add changeset to release changes
@ajimae ajimae force-pushed the fix/reduce-token-fetch-window branch from 16c070a to e7980e5 Compare August 23, 2022 12:03
@ajimae ajimae requested a review from briantomkins August 23, 2022 12:33
@ajimae ajimae merged commit 4ef07fa into master Aug 23, 2022
@ajimae ajimae deleted the fix/reduce-token-fetch-window branch August 23, 2022 20:45
@ghost ghost mentioned this pull request Aug 23, 2022
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.

3 participants