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

ApexLeo's avatar

Laravel authentication using Node.js API

Hello Everyone

I have a scenario where i have a laravel application view onlue, and node application. i cannot use laravel authentication, i have to login through Node.js api using JWT can someone giude me through that. that my whole application work through Node.js api. i will receive all my data through Node.js

Any help will be appreciated thanks

0 likes
1 reply
bait-dept's avatar

Hello,

Maybe you should authenticate against the node api and store the JWT token in session and then retrieve and send it on on your http requests via the headers I suppose.

Please or to participate in this conversation.