T
T
truemckenzie2019-08-18 16:20:35
Laravel
truemckenzie, 2019-08-18 16:20:35

How to save the context of an authorized user through custom authorization in Laravel?

Good afternoon!
There is an api on node.js. I am accessing this api through Laravel. After authorization, api returns me a certain token and an authorized user. After updating the page, I lose the user in the Laravel context, I don’t want to store the user in the session. I need something like higher-order queries that will be processed anytime, anywhere. I will always ask for an authorized client and run it through all the views.
Help if anyone can :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grinat, 2019-08-19
@grinat

If it is one for all, then it’s just in a variable, in the node there is one process for everyone, everything is not killed and restarted with a new one as in php. If there are a lot of them, then in any case it is necessary to determine that this is exactly the user, and not another, it will not work without sessions / cookies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question