diff --git a/pagermaid/web/api/utils.py b/pagermaid/web/api/utils.py index d44282d..9ac32a3 100644 --- a/pagermaid/web/api/utils.py +++ b/pagermaid/web/api/utils.py @@ -11,7 +11,7 @@ TOKEN_EXPIRE_MINUTES = 30 def authentication(): - def inner(token: Optional[str] = Header(...)): + def inner(token: Optional[str] = Header(None)): if Config.WEB_SECRET_KEY: if token == Config.WEB_SECRET_KEY: return