An open API service indexing awesome lists of open source software.

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

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
}
}
```