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

mvcexpert's avatar

Session Package Advice

I am building out an API on Laravel using API services with a Vue front-end, any advice what session management package I should use? i.e. Passport, JWT...

Thanks for any suggestions in advance.

0 likes
1 reply
neilherbertuk's avatar

There are a lot of online resources that cover this, a quick Google will point you in the right direction.

I tend to use JSON Web Tokens (JWT) for this using tymon/jwt-auth for the backend auth side, you can use this as part of the built in auth mechanism. Then on the Vue side websanova/vue-auth

“API Authentication in Laravel-Vue SPA using Jwt-auth” by Olu Udeh https://link.medium.com/BLyvkvIIrS might get you started.

Neil

Please or to participate in this conversation.