diff options
author | 2020-11-26 18:56:56 +0000 | |
---|---|---|
committer | 2020-11-26 18:56:56 +0000 | |
commit | 182da79739a134b8d574bf995601bc33b2f9a8c8 (patch) | |
tree | 26c57af0d6b4fa7a6d4f7d2b578b741662c01bfc /backend/routes/auth/authorize.py | |
parent | linebreak in SCHEMA.md (diff) | |
parent | Add secretRef key to deployment.yaml (diff) |
Merge pull request #1 from python-discord/docker-ci-deployment
Diffstat (limited to 'backend/routes/auth/authorize.py')
-rw-r--r-- | backend/routes/auth/authorize.py | 3 |
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"]) |