Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Deekshith's avatar

Provide both API Passport authentication and default session Auth

i have admin dashboard where admin can manage the website and here i am using default Auth::attempt for login purpose and it is session based. same application has api routes where i should share api for reactjs for login and register purpose (i am planning to use passport for this). how to combine both and does this affect normal login flow if i install passport and make necessary changes for User mode?

0 likes
2 replies
martinbean's avatar
Level 80

Passport doesn’t affect the “normal” session-based authentication flow, no.

Please or to participate in this conversation.