When using a Flask web app with Flask-Login, a cookie is saved in the browser. If a user attempts to modify the cookie key, Flask detects and blocks the login attempt. What is the best equivalent approach in FastAPI? I have heard that I need to manually implement something with middleware, but I do not understand what is required here. Based on your experience, what do I need to learn to implement a standard email and password login mechanism in FastAPI or any better easy way ?
Thread When using a Flask web app with Flask-Login, a cookie is saved in the browser. If a user attempts to modify the cookie k…
7 messages · –B R https://fastapi.tiangolo.com/tutorial/middleware/ https://fastapi.tiangolo.com/tutorial/security/first-steps/ And no, in APIs you do not use cookies You use JWT (usually)👍2