Securing a Laravel API in 20 minutes with JWTs

Published: 09 December 2018
on channel: Andrew Schmelyun
78,979
1.1k

In this video you'll learn how you can secure a Laravel API and authenticate users within it using JSON Web Tokens.

Directly support these videos:   / aschmelyun  

tymon/jwt-auth package: https://github.com/tymondesigns/jwt-auth -

This will let you to separate your API and use it in external clients like native mobile apps or single-page web apps, where we need a user to be 'signed in' in order to view specific routes or pages.

JWTs work like this:

• Send user credentials to the API
• Get back a unique token (JWT) representing the user's session
• Use this token in requests where user authentication is required
• Return details specific to the user who has provided their token

Any questions? Ideas for a video? Feel free to let me know here or on Twitter, @aschmelyun!


Watch video Securing a Laravel API in 20 minutes with JWTs online without registration, duration hours minute second in high quality. This video was added by user Andrew Schmelyun 09 December 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 78,979 once and liked it 1.1 thousand people.