Skip to content

Instantly share code, notes, and snippets.

@dkhmelenko
Created September 18, 2023 21:01
Show Gist options
  • Save dkhmelenko/c975afde5929fd3331296115ad949bb7 to your computer and use it in GitHub Desktop.
Save dkhmelenko/c975afde5929fd3331296115ad949bb7 to your computer and use it in GitHub Desktop.
Decorator declaration
def authenticate(user):
def decorator(request):
add_auth_headers()
request()
def add_auth_headers():
...
return decorator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment