Laravel Passport gets 'It was not possible to parse your key, reason: ""' error after upgrade to PHP8.0

Boris N picture Boris N · Nov 30, 2020 · Viewed 6.9k times · Source

My app works on Laravel 8 with laravel/passport 10.0.1. After upgrading php version on dev server from 7.4 to 8.0, I'm getting It was not possible to parse your key, reason: "" error (without any message from openssl_error_string).

Any ideas how to fix it?

Answer

Boris N picture Boris N · Nov 30, 2020

OK, after brief investigation, I found that you have to update laravel/passport to 10.1.0 (the newest at the moment of posting) to make it work with php8.0.