Skip to content

Instantly share code, notes, and snippets.

View petarnikolovski's full-sized avatar

Petar Nikolovski petarnikolovski

View GitHub Profile
@elistone
elistone / apolloExampleTokenReAuthorise.js
Created August 15, 2018 10:08
Apollo VueJS - Token Re-authorisation
import {ApolloLink} from "apollo-link";
import {ApolloClient} from "apollo-client";
import {createHttpLink} from 'apollo-link-http';
import {HttpLink} from "apollo-link-http";
import {InMemoryCache} from "apollo-cache-inmemory";
const customFetch = (uri, options) => {
// set a reference to the refresh promise