Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
seallard committed Mar 8, 2024
1 parent d93fd02 commit 12dc894
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trailblazer/server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 12dc894

Please sign in to comment.