Answer the question
In order to leave comments, you need to log in
How to save user without authorization for api?
Good afternoon! There is an API (laravel), with login, register and save_page (example name) methods.
When the user has passed login, then when using the save_page method, I can check if the user is authorized and save the data with his id.
Now the question is, if an unauthorized user does, for example, save_page 3 times, to identify him for the first time, I will assign him a unique id and execute save_page. But, how can I understand for the second and third time that this is the same user? After all, api does not save state, right?
I would be grateful for a hint.
Answer the question
In order to leave comments, you need to log in
The API does not save, yes, but what prevents you from requiring a "guest login" from the client? There is such a practice as anonymous user. That is, everyone who accesses the api should receive a token, but it doesn’t matter how. You can allow such access for a while and that's it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question