Skip to content

🚀 Token based email & password authentication template using GraphQL & Apollo Client for VueJS Apps

License

Notifications You must be signed in to change notification settings

DuyguKeskek/vue-graphql-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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__'
})

About

🚀 Token based email & password authentication template using GraphQL & Apollo Client for VueJS Apps

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published