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

Don't issue another token refresh, if there one in progress #32

Merged
merged 2 commits into from
Dec 30, 2016

Conversation

alexxv
Copy link
Contributor

@alexxv alexxv commented Dec 29, 2016

When client makes multiples relay requests with expired token, we only need to refresh token once for those requests.

Solves #25

I've tested this code, but it takes me time to write tests for this.

* upstream/master:
  Add link to babel-plugin-transform-relay-hot
  Bump 1.3.8
  Configurable header name for auth middleware (relay-tools#28)
  Bump 1.3.7
  Don't call repeat with value less than 0 (relay-tools#27)
  Update README.md
@nodkz
Copy link
Collaborator

nodkz commented Dec 30, 2016

Nice! Thanks!

alexxv added a commit to Wondermall/react-relay-network-layer that referenced this pull request Jan 11, 2017
* upstream/master:
  Add badges
  Bump 1.3.9
  Don't issue another refresh request if there is one running (relay-tools#32)
  reference koa-graphql-batch in README (relay-tools#33)
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