We're using a Lumen micro-service for managing our authentication logic (token provider) and using its tokens in another Laravel 5.8 app for authentication (token consumer). Both apps are connected to the same database.
It turned out tokens generated by provider service are not authorized in consumer app just in the first second after generation. Still, if we put a delay of around 1 second, they will be authorized. We also tested tokens in the provider project, and all generated tokens work well and get authorized with no delay.
- Provider Passport Version: 10.1.3
- Provider Lumen Version: 8.2.7
- Provider PHP Version: 8.1
- Consumer Passport Version: 7.5.1
- Consumer Laravel Version: 5.8.38
- Consumer PHP Version: 7.4
- Database Driver & Version: Postgres