Signin methods working with no errors.
This commit is contained in:
@@ -26,8 +26,14 @@ const authLink = setContext((_, { headers }) => {
|
||||
}
|
||||
});
|
||||
|
||||
const middlewares = [];
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
middlewares.push(apolloLogger);
|
||||
}
|
||||
middlewares.push(authLink.concat(httpLink));
|
||||
|
||||
export const client = new ApolloClient({
|
||||
link: authLink.concat(httpLink),
|
||||
link: ApolloLink.from(middlewares),
|
||||
cache: new InMemoryCache({ addTypename: false }),
|
||||
typeDefs,
|
||||
resolvers
|
||||
|
||||
Reference in New Issue
Block a user