dotbackend-graphql - Admin Panel - UserAuthentication Signup, LoggedInUser, Forgot Password
- Install Dependencies - npm install
- Install GraphCool globally to use CLI features
npm install -g graphcool
- graphcool console
- graphcool playground
Make Mutation in Graphcool Console
mutation{ signupUser(email:"newUser@gmail.com",password:"123Test"){ id token } }
mutation{ authenticateUser(email:"newUser@gmail.com",password:"123Test"){ token } }
To check for loggedInUser - Copy the GeneratedToken in HTTP Header option as
Authorization: Bearer and it will return loggedIn User ID
query{ loggedInUser{ id } }
References :