@management.before_request
def check_fresh_login():
 if (not login_fresh()):
  return current_app.login_manager.needs_refresh()

@ management . before_request def check_fresh_login ( ) : if ( not login_fresh ( ) ) : return current_app . login_manager . needs_refresh ( )
checks if the login is fresh for the current user .