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

jachno's avatar

Laravel Spark + JWT

I have a laravel spark application that I want to hook a mobile app up to.

If I use passport I have to include the client id and secret on the app. Something that I am not very keen on doing. I was hoping to use JWT so that user could login and I would give the mobile app a token to use for each request

But this requires me to change the API auth driver from spark to JWT. Something I am nervous will have an impact on how spark wants to work.

is there a way that I can get JWT to work with spark?

THanks

0 likes
1 reply
gbrits's avatar

Hi @jachno - Did you ever solve this on your own? And if so, can you shed any light on what techniques you employed and which methods you had to modify?

Please or to participate in this conversation.