/gql-jwt-auth-demo

A graphql auth demo app

Primary LanguageJavaScript

Graphql Jwt Auth Demo 🚀

🔎 Description

This project contains a few user operations and also a basic login-password jwt authentication. Once you log in the access-token cookie is stored on you environment allowing you to acess the me query.

✅ Requirements


🐳 Running

docker-compose up -d

📝 Resources Example

mutation CreateUser($newUser: UserCreateInput!) {
  register(input:$newUser) {
    name
  }
}

mutation Login($loginInput: LoginInput!) {
  login (input: $loginInput) {
    name
    email
  }
}

query AuthRequiredQuery {
  me {
    id
    name
  }
}