From 12dc894c3d796e3e2404a7c92b19d50e3473c8e6 Mon Sep 17 00:00:00 2001 From: Sebastian Allard Date: Fri, 8 Mar 2024 13:38:48 +0100 Subject: [PATCH] Add docstring --- trailblazer/server/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trailblazer/server/api.py b/trailblazer/server/api.py index b13f499f..eaf2c049 100644 --- a/trailblazer/server/api.py +++ b/trailblazer/server/api.py @@ -71,6 +71,7 @@ def before_request(): @blueprint.route("/auth", methods=["POST"]) @inject def authenticate(auth_service: AuthenticationService = Provide[Container.auth_service]): + """Exchange authorization code for an access token.""" try: request_data = CodeExchangeRequest.model_validate(request.json) token: str = auth_service.authenticate(request_data.code)