https://github.com/jkettmann/authentication-with-graphql-and-jwt
This is a demo project which is explained in detail in this blog post: How to authenticate using GraphQL and JWT
https://github.com/jkettmann/authentication-with-graphql-and-jwt
Last synced: about 1 month ago
JSON representation
This is a demo project which is explained in detail in this blog post: How to authenticate using GraphQL and JWT
- Host: GitHub
- URL: https://github.com/jkettmann/authentication-with-graphql-and-jwt
- Owner: jkettmann
- Created: 2019-01-27T11:17:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-30T07:21:02.000Z (about 6 years ago)
- Last Synced: 2025-02-03T13:15:31.689Z (3 months ago)
- Language: JavaScript
- Homepage: https://jkettmann.com/how-to-authenticate-using-graphql-and-jwt/
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How to install and run the project
This project uses npm. To install and start the GraphQL server run following commands.
```
npm install
npm start
```Visit [http://localhost:4000/graphql](http://localhost:4000/graphql) and try out following mutation and query.
```graphql
mutation {
login(email: "[email protected]", password: "qwerty") {
firstName
lastName
}
}
```and
```graphql
query{
currentUser{
firstName
lastName
}
}
```