@platyplus/authentication-service
> TODO: description
Last updated 2 months ago by plmercereau .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @platyplus/authentication-service 
SYNC missed versions from official npm registry.

Authentication-service

TODO: put in the documentation Simple Auth Server For Signup & Login Mutation See this

Setup

  1. npm install
  2. follow https://docs.hasura.io/1.0/graphql/manual/auth/jwt.html for setting up JWT mode
  3. edit config.json
  4. npm start
  5. add url to remote schemas
    1. using docker and localhost? https://docs.hasura.io/1.0/graphql/manual/deployment/docker/index.html#network-config
  6. add required schema

Required Schema

  • id (uuid)
  • email (string/text)
  • password (string/text)

Queries

me { email } // Used for login check

Mutations

login(email: String, password: String) { token }
signup(email: String, password: String) { token }
const authenticationService = require('authentication-service');

// TODO: DEMONSTRATE API

Current Tags

  • 0.0.5-alpha.0                                ...           latest (2 months ago)

3 Versions

  • 0.0.5-alpha.0                                ...           2 months ago
  • 0.0.4-alpha.0                                ...           2 months ago
  • 0.0.3-alpha.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (8)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |