I'm building a simple web server in Flask which returns JSON data from REST requests.
The server communicates with an Angular front-end.
I want to manage user authentication and sessions (with crowd), but saw there are various ways to implement this.
It's unclear to me at which level I should implement the session (and authentification) management:
- Should it be done in the backend server, with forwarded input data (login/password) from the front-end?
- or, Should it be done at the front-end level, at least for the session management?
What is the preferable approach for this?
Thank you