https://blog.morizyun.com/javascript/typescript-tutorial-firebase-auth-graphql-react.html import ApolloClient, { InMemoryCache } from "apollo-boost" ; const token = await auth.currentUser.getIdToken( true ); const client = new ApolloClient({ cache: new InMemoryCache(), headers: { token: token }, uri: "http://localhost:3000/graphql" });