vue-graphql-auth
vue-graphql-auth is a basic authentication template for VueJS apps using a GraphQL backend. It allows you to easily setup your own authentication by changing the GraphQL endpoint.
Installation
# installing the preset package npm i vue-graphql-auth --save
Build Setup
# install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev# build for production with minificationnpm run build
Usage
Cd into src folder. In main.js, simply change __SIMPLE_API_ENDPOINT__
with your actual GraphQL endpoint.
const httpLink =// You should use an absolute URL hereuri: '__SIMPLE_API_ENDPOINT__'