Adding Authentication with JWT, Knex, GraphQL
After adding KnexJS in the previous lesson, in today’s lesson we’re going to see how:
- adding a user table with Knex
- how to protect passwords using bcrypt, hashing and salting passwords
- adding a Mutation object in GraphQL
- adding a register user mutation method in graphql
- using JWT to authenticate and verify users
- veryfing that all of that works by using a private route and passing through an authentication bearer token with Postman.
#graphql #knex #jwt