aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/auth/authorize.py
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-11-23 16:33:35 +0200
committerGravatar ks129 <[email protected]>2020-11-23 16:33:35 +0200
commita58a2b7f88f9100a3399c22234c170bdd47dc91a (patch)
tree057fbf79a2be76b6ff8b97176c42680f980711e1 /backend/routes/auth/authorize.py
parentMake flake8 matchers removing step comments better (diff)
Fix linting issues to make flake8 job passing
Diffstat (limited to 'backend/routes/auth/authorize.py')
-rw-r--r--backend/routes/auth/authorize.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/routes/auth/authorize.py b/backend/routes/auth/authorize.py
index 768b9af..5de49f5 100644
--- a/backend/routes/auth/authorize.py
+++ b/backend/routes/auth/authorize.py
@@ -3,6 +3,7 @@ Use a token received from the Discord OAuth2 system to fetch user information.
"""
import jwt
+from starlette.requests import Request
from starlette.responses import JSONResponse
from backend.constants import SECRET_KEY
@@ -18,7 +19,7 @@ class AuthorizeRoute(Route):
name = "authorize"
path = "/authorize"
- async def post(self, request):
+ async def post(self, request: Request) -> JSONResponse:
data = await request.json()
bearer_token = await fetch_bearer_token(data["token"])