From 06881380e488477fc1484558cb6e79b87a80540c Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 8 Sep 2025 20:26:51 +0400 Subject: [PATCH] refac --- servers/get-oauth-tokens/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/get-oauth-tokens/main.py b/servers/get-oauth-tokens/main.py index 7552260..c4dca9f 100644 --- a/servers/get-oauth-tokens/main.py +++ b/servers/get-oauth-tokens/main.py @@ -32,9 +32,9 @@ async def get_oauth_tokens(request: Request): oauth_id_token = cookies.get("oauth_id_token") oauth_access_token = None - auth_header = headers.get("Authorization") - if token := auth_header.split(" ")[1]: - oauth_access_token = token + if headers.get("Authorization"): + if token := headers.get("Authorization").split(" ")[1]: + oauth_access_token = token if oauth_id_token is None and oauth_access_token is None: raise HTTPException(