paint-brush
The Simple & Efficient Way to Enable JWT auth in Laravel By Using PHP-JWT Moduleby@gagansandhu
8,076 reads
8,076 reads

The Simple & Efficient Way to Enable JWT auth in Laravel By Using PHP-JWT Module

by Gagan Sandhu2mOctober 18th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Laravel uses firebase/php-jWT to generate and authenticate users. Laravel's web-sockets authenticate process is all done behind the scenes behind the Scenes. This solution is not for those who using passport in their application as Laravel has an inbuilt system to support that. Use this only if you have a custom JWT implementation. We can provide custom middleware implementation for authentication routes for routes. We need to update the API guard driver to custom-jwt in Configuration/auth.php after this.
featured image - The Simple & Efficient Way to Enable JWT auth in Laravel By Using PHP-JWT Module
Gagan Sandhu HackerNoon profile picture
Gagan Sandhu

Gagan Sandhu

@gagansandhu

Full Stack Developer and ML Enthusiast

Learn More
LEARN MORE ABOUT @GAGANSANDHU'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Gagan Sandhu HackerNoon profile picture
Gagan Sandhu@gagansandhu
Full Stack Developer and ML Enthusiast

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here