Level 61
Jun 12, 2020
3
Level 1
Use Session instead of api_token
Hello,
I have a website where you login and sometimes I use apis to pass data to the frontend. I have it working with api_tokens(no refresh for now on the token) but I want to use sessions instead as the session is passed in the header when the request happens.
Solutions:
- Not use the api for these requests, but I plan in the future to maybe have a SPA
- Modify the way api works to also validate the session, anyone knows what I need to modify?
- Move the api in the web part of the app.
Any ideas on what would be the best solution, 1 seems the simplest one
Thank you
Please or to participate in this conversation.