Laravel Passport simplifies API authentication by providing a full OAuth2 server implementation. However, you might encounter the "Invalid Key Supplied" error while working with Passport. This error typically arises due to issues with encryption keys or configurations.
In this article, I’ll explain the common causes behind this error and provide a step-by-step guide to resolve it effectively.
Laravel Passport - Invalid key supplied Error
Run the following command:
php artisan passport:install
After that, generate the keys using the following command.
php artisan passport:keys --force
Then we need to permit storage folder.
sudo chmod -R 0777 ./storage
You might also like:
Hey there! I'm diving into the world of Laravel 10 and Livewire, and I'm excited to share a step-by-step guide o...
Dec-06-2023
In this tutorial, I will show you how to generate barcodes using the milon/barcode package. In this example, we wil...
Jun-06-2020
Hello, laravel web developers! In this article, we'll see how to create datatable in laravel 11 livewire using medic...
Jun-05-2024
Hey there, Ubuntu users! If you've ever needed a hand troubleshooting your friend's computer from the comfort of...
Jan-17-2024