```const client = new GraphQLClient('my-endpoint',...
# prisma-whats-new
j
Copy code
const client = new GraphQLClient('my-endpoint', {
  headers: {
    Authorization: 'Bearer my-jwt-token',
  },
})
a
What client are you working with on your front-end? Apollo or just the base graphql-client utilizing fetch?
j
Just graphql-client, it's a small data importer project. Our main project uses apollo but I like the smaller client for this
the token from Gcool is just a long string with a "." seperator
a
yup that's a JWT token
so if you're using the basic client you would put that token in place of the
my-jwt-token
something like:
Bearer ${myJwtToken}
j
thanks! you rock. It worked 🙂
👍 2