fix(auth.auth_required): remove unused keyword arguments

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-12-01 11:56:44 -08:00
parent 112837e0e9
commit c09784d58f
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -120,9 +120,7 @@ class BasicAuthBackend(AuthenticationBackend):
return (AuthCredentials(["authenticated"]), user) return (AuthCredentials(["authenticated"]), user)
def auth_required(is_required: bool = True, def auth_required(is_required: bool = True):
template: tuple = None,
status_code: HTTPStatus = HTTPStatus.UNAUTHORIZED):
""" Authentication route decorator. """ Authentication route decorator.
:param is_required: A boolean indicating whether the function requires auth :param is_required: A boolean indicating whether the function requires auth