oauth-private. key does not exist or is not readable in Laravel

Posted by

Error:

local.ERROR: Invalid key supplied {“exception”:”[object] (LogicException(code: 0): Invalid key supplied at /opt/lampp/htdocs/myhospitalnow/mhn-support-ms/vendor/league/oauth2-server/src/CryptKey.php:67)

Solution:

Since /storage/*.key is in .gitignore so if you pull the project, that might be missing the key by running

 php artisan passport:keys
 php artisan passport:keys
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x