I found that my secret key, stored in ENV was making the problem, so changed the name of ENV variable solved the problem.
Laravel Passport - Key path "file:///home/user/projectname/storage/oauth-public.key" does not exist or is not readable
Hi everyone,
As you can see from the title, i have problem with the oauth-public.key. I have installed Laravel Passport and everything was going perfect (it worked on Postman, also on my application) and suddenly i get the error message that impacted completely my application.
LogicException: Key path "file://secret-key-from-db" does not exist or is not readable in file /Users/user/project-name/vendor/league/oauth2-server/src/CryptKey.php on line 48
I have tried to reinstall the passport php artisan passport:install, cleaning the config cache php artisan config:clear , and also to regenerate the public and secret keys in my storage php artisan passport:install, but nothing is changing, the problem is still here. I have checked everything from git commits, there is no single change in the project.
Any idea what should i try next? I would be really thankful!
Please or to participate in this conversation.