Skip to content

Instantly share code, notes, and snippets.

@clarencenpy
Last active July 11, 2018 06:16
Show Gist options
  • Save clarencenpy/edaabb418fc62692eb9ad10b3469fa08 to your computer and use it in GitHub Desktop.
Save clarencenpy/edaabb418fc62692eb9ad10b3469fa08 to your computer and use it in GitHub Desktop.
import { ApolloClient } from 'apollo-client';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { HttpLink } from 'apollo-link-http';
const client = new ApolloClient({
link: ApolloLink.from([
// other links go here
ReauthenticatonLink,
new HttpLink({
uri: 'http://graphql-endpoint:4000',
}),
]),
cache: new InMemoryCache(),
});
@techyrajeev
Copy link

Can you please share the implementation of ReauthenticatonLink as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment