I'm working on a flask web application using flask-login for user authentication. Now the current layout is going through some changes and it was decided that some of the components should obtain data from the server in order to update on user request. I intended to create some api routes but I'm not sure how should I now handle user authentication accessing these routes. I'll be happy to hear what's the best practice in these cases.
Thanks