phplaravel-passportphp-8

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


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?


Solution

  • 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.