mirror of
https://gitlab.sectorq.eu/jaydee/api_server.git
synced 2026-09-17 02:12:55 +02:00
build
This commit is contained in:
@@ -4,6 +4,7 @@ from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
|
|||||||
|
|
||||||
security = HTTPBearer()
|
security = HTTPBearer()
|
||||||
|
|
||||||
|
|
||||||
API_TOKEN = os.getenv("API_TOKEN", "mytoken")
|
API_TOKEN = os.getenv("API_TOKEN", "mytoken")
|
||||||
|
|
||||||
def verify_token(credentials: HTTPAuthorizationCredentials = Depends(security)):
|
def verify_token(credentials: HTTPAuthorizationCredentials = Depends(security)):
|
||||||
|
|||||||
Reference in New Issue
Block a user