Now, it's the time to add authentication to our website.
session to store the user's state (e.g., an authenticated bool + username string keys).secret_key for the session, otherwise it won't work!/login and /logout with the appropriate checks / actions.login.html template page, or roll out your own!<form>!authenticated variable inside the Jinja template to conditionally display the user's status.session is readily available inside Jinja2 templates!