I need to create an application. I need an admin portion as well an api that would be used by customers. I plan to use fortify and sanctum for authentication. I am unclear as how to get fortify to work with both web and api authentication.
If the web portion is not a SPA, I would suggest using passport.
However, the API portion whether sanctum or passport would be token based and the web portion session based. So fortify can be used but separate from sanctum or passport.
Sanctum or passport can be used, I just suggest passport. But it's only a suggestion if you do not have an SPA. But if you do have an SPA then look at using Sanctum.
But the session portion you mentioned, any of the session based techniques would work including Fortify.