DEV Community

Discussion on: JWT authentication for Lumen 5.4

Collapse
 
israelbazan76 profile image
israel bazan

great article thanks for sharing!

just a little correction, in AuthController.php
function jwt the return value must be
return JWT::encode($payload, env('JWT_SECRET'),'HS256');
in otherwise,when we try to access to a protected route will fail