Python decorators are functions that are used to transform other functions. The decorator can then take action, modify the arguments, halt execution or call the original function. @decorator_function def decorated(): pass In addition to handling the details of user authentication, Flask-Login gives us a decorator to .