handisb's avatar

Storing JWT Token Lumen

So I'm using the tymon/jwt-auth package and I'm trying to figure out how I can use Lumen to store the jwt token so that after the user logs in, the system can automatically send the jwt token through all of the HTTP requests afterwards. Essentially, it's like a user logging into their dashboard type of system.

Does anyone know how I can do this? Any help would be appreciated.

0 likes
1 reply
fylzero's avatar

@handisb The JWT would be stored client side in a cookie/not on the server (Lumen). Once you have the token client side you'll want to pass the Bearer token into the headers of whatever you are using to make data calls. Maybe Axios, for example.

24 likes

Please or to participate in this conversation.