Store your token on the client side, for example on a cookie (preferable) or in localStorage/ sessionStorage. And pass that with every request to the API where you check the validity of the token.
Jul 4, 2017
3
Level 4
Save my Api Token
i do an API with Laravel, and i want to do a Client with Lumen, i want use Lumen to consume my api, with lumen 5.4 don't have session() more, so where can i save my api JWT token? after login? to use with my others request?
thanks
Level 15
2 likes
Please or to participate in this conversation.