Logo Awesome React

Awesome React

Protected Routes, Mutations, and Queries with React Router and GraphQL

Learn how to protect your routes on the frontend with React Router. Then on your backend, you can protect your GraphQL mutations and queries. You can setup fine grained permissions so you can make sure the right people are accessing the right things.

Code:
Frontend: https://github.com/benawad/slack-clone-client/tree/8_auth_routes
Backend: https://github.com/benawad/slack-clone-server/tree/11_permissions

Links from video:
https://jwt.io/
https://github.com/benawad/graphql-express-template/blob/32_s3_uploads/permissions.js
https://github.com/auth0/jwt-decode
https://reacttraining.com/react-router/web/example/auth-workflow


----
Video Suggestions:

Trello: https://trello.com/b/mErpLVj7/todo
Join the Trello board: https://trello.com/invite/b/mErpLVj7/99020cac2d3397287640d7d86cb3c09a/todo

----
Follow Me Online Here:

GitHub: https://github.com/benawad
Instagram: http://instagram.com/benawad97
Twitter: https://twitter.com/benawad97