Skip to content
Snippets Groups Projects
Commit 780a5952 authored by Adrian Block's avatar Adrian Block
Browse files

🐛 fixed uuid str conversion

parent 88c83f0a
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ api_key_header = APIKeyHeader(name="API-Key")
def check_api_key(api_key: str = Security(api_key_header)):
if not (api_key in api_settings.API_KEYS):
if not (api_key in [str(u) for u in api_settings.API_KEYS]):
print(api_key, api_settings.API_KEYS)
raise HTTPException(status_code=401, detail="API-Key header invalid")
return api_key
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment