We're developing an API to serve as the backend for a mobile app.
While deciding how to handle authentication, we're deciding between using Sanctum or Passport and I would like to gather some more opinions if possible (Thanks in advance for anyone helping!)
Our mobile app needs to be able to maintain access the whole time as long as the user does not logs out. But API tokens never expiring seems insecure, so we want our tokens to have an expiry date and give the app an endpoint to refresh it's token.
Sanctum doesn't have refresh_tokens natively, so naturally we looked to Passport.
But Passport seems over-engineering this, it doesn't make sense for us to have to generate a client_id and client_secret for our own mobile app be able to log in. Plus, the fact the that Password Grant clients are created via an artisan command feels like it's going to be a problem for CI/CD.
We're thinking about using Sanctum and implement a refresh_token feature manually, but before taking this decision, I wanted to gather some info on the community about the best approach to this situation, maybe a package I didn't know yet already solves our problem?