removing tmp log

This commit is contained in:
msramalho
2023-10-25 15:01:51 +01:00
parent 5e0024c726
commit 3ab5477e6c

View File

@@ -47,7 +47,6 @@ async def get_bearer_auth(credentials: HTTPAuthorizationCredentials = Depends(be
def authenticate_user(access_token):
# https://cloud.google.com/docs/authentication/token-types#access
if type(access_token) != str or len(access_token) < 10: return False, "invalid access_token"
logger.debug(f"TEMP: {access_token=}")
r = requests.get("https://oauth2.googleapis.com/tokeninfo", {"access_token": access_token})
if r.status_code != 200: return False, "error occurred"
try: