0.0.5-alpha.0 • Published 5 years ago
@platyplus/authentication-service v0.0.5-alpha.0
Authentication-service
TODO: put in the documentation Simple Auth Server For Signup & Login Mutation See this
Setup
- npm install
- follow https://docs.hasura.io/1.0/graphql/manual/auth/jwt.html for setting up JWT mode
- edit config.json
- npm start
- add url to remote schemas
- using docker and localhost? https://docs.hasura.io/1.0/graphql/manual/deployment/docker/index.html#network-config
- 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