vue-graphql-auth

1.0.1 • Public • Published

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 dependencies
npm install
 
# serve with hot reload at localhost:8080
npm run dev
 
# build for production with minification
npm run build

Usage

Cd into src folder. In main.js, simply change __SIMPLE_API_ENDPOINT__ with your actual GraphQL endpoint.

const httpLink = new HttpLink({
  // You should use an absolute URL here
  uri: '__SIMPLE_API_ENDPOINT__'
})

Readme

Keywords

none

Package Sidebar

Install

npm i vue-graphql-auth

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

45.3 kB

Total Files

32

Last publish

Collaborators

  • duygukeskek