This repo gives entire user authentication code for Lumen framework. It gives following things out of the box:
- Auth Controller
- Cors Middleware
- Throttle Middleware
- Passport Service Provider Code
- Exception Handler
- API Response
- User Model Code
- User Migration Table
- Auth APIs
Also, you can take clone of this repo, update dependencies in composer.json according to your needs and run composer update
. You will have fresh Lumen framework with user authentication code totally ready.