Passport: TokenGuard suddenly not decoding JWT Token cookie

Created on 29 Jul 2020  ·  4Comments  ·  Source: laravel/passport


  • Laravel Version: 7.0
  • Homestead Version: 10.9.1

Description:

Appears that when using Cookie authentication the decoding of the cookie is suddenly not working within the TokenGuard. Was working fine a few weeks back, I'm assuming something updated with one of the dependencies?

Screenshot from 2020-07-28 16-59-40

Screenshot from 2020-07-28 16-42-19

Screenshot from 2020-07-28 16-42-31

Screenshot from 2020-07-28 16-50-26

Steps To Reproduce:

  • Use the cookie authentication
  • Within TokenGuard it is not working

All 4 comments

Upgrade your Laravel and passport to the latest versions please.

Yeah updating to Passport ^9.3 fixed the issue.

@driesvints Is there some kind of explanation for why older minor version updates are now broken? I'm presumably running compatible versions with Laravel 6.18 and Passport 8.5. I don't understand why this would be "suddenly" broken.

EDIT: Never mind. I finally found the relevant discussion(s), and discovered that Passport 9.x works with Laravel 6.x. Updating Passport now.

@trip-somers yeah we blogged about it here: https://blog.laravel.com/laravel-cookie-security-releases

Was this page helpful?
0 / 5 - 0 ratings