mirror of
https://gitlab.sectorq.eu/jaydee/api_server.git
synced 2026-11-01 14:07:06 +01:00
build
This commit is contained in:
1 parent
5adcef7888
commit
e25f0b6123
1 file changed
+1
@@ -4,6 +4,7 @@ from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
|
||||
|
||||
security = HTTPBearer()
|
||||
|
||||
|
||||
API_TOKEN = os.getenv("API_TOKEN", "mytoken")
|
||||
|
||||
def verify_token(credentials: HTTPAuthorizationCredentials = Depends(security)):
|
||||
|
||||
Reference in new issue
Block a user