Since we have built our custom PHP REST API, one thing has been missing...security. In this video, we learn how to add JWT tokenization to our RESTful API.
We use Firebase JWT to create and retrieve a simple token that can be used to validate users, external websites, and make your API more secure. We also turn on tokenization in our Swagger UI and allow users to generate a token that can be used to authorize our other routes using a GUI.
0:00 Intro
02:51 Create auth route in API
04:58 Create auth function for route
05:28 Integrate Firebase JWT
08:10 Integrate JWT encode
15:47 Added auth route to Swagger
16:34 Added Tokenization form to Swagger UI
22:50 Added JWT to existing functions
41:26 Upcoming: Using AJAX to set token from Frontend
⭐ Join the Discord: / discord
⭐ If you would like to buy me a coffee because I created something that helped you, it would be much appreciated! : https://www.buymeacoffee.com/devdrawer
⭐ Join this channel to get access to perks:
/ @devdrawer
⭐ Become a Patreon to show support and get exclusive access to content: / devdrawer
`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
Subscribe: https://bit.ly/2Wbsnj9
`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
Join us on our blog for video recaps and other tutorials: https://thedevdrawer.com
Become a fan on Twitter: / thedevdrawer
View Project on GitHub: https://github.com/thedevdrawer