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!