Installation php artisan passport:keys php artisan passport:keys php artisan passport:client --personal npm run dev Update .env file and add the API_CLIENT_ID according to the generated ID (usually 1)