relay-tools / react-relay-network-layer

ReactRelayNetworkLayer with middlewares and query batching for Relay Classic.
MIT License
277 stars 47 forks source link

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

Closed alexxv closed 7 years ago

alexxv commented 7 years ago

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.

nodkz commented 7 years ago

Nice! Thanks!