Open in app
Connor Leech
2.9K Followers
About

Sign in

2.9K Followers
About
Open in app
Connor Leech

Connor Leech

Apr 13, 2018·1 min read

This changes for Laravel version ≥ 5.5.

You don’t need to add the route middleware, run “secret” instead of “generate” and a few other tweaks

https://github.com/tymondesigns/jwt-auth/issues/1316

Connor Leech

Engineer, writer and community organizer. I built Employbl to help candidates get jobs in the Bay Area: https://employbl.com/

Edit app/Http/Kernel.php adding jwt.auth and jwt.refresh to the application’s route middleware array.

API Authentication in Laravel-Vue SPA using Jwt-auth
2K
46

Olu Udeh

More from Connor Leech

Engineer, writer and community organizer. I built Employbl to help candidates get jobs in the Bay Area: https://employbl.com/

More From Medium

Build a powerful Laravel 5 app with Grafite

Connor Leech in Employbl

Build authentication into your Laravel API with JSON Web Tokens (JWT)

Connor Leech in Employbl

The 2 types of software engineering interviews and how to prepare for them

Connor Leech in Employbl

Web development technologies you can learn in 2018

Connor Leech in Employbl

Build a task app with Hapi, MongoDB and Vue.js

Connor Leech in Employbl

30 things I learned from Javascript 30

Connor Leech in Employbl

How to optimize your website for search engines

Connor Leech in Employbl

America Has a Monopoly Problem

Connor Leech

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store