Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ async def verify_token(token: str = Depends(api_key_query)):
|
|
69 |
if not token:
|
70 |
raise HTTPException(status_code=401, detail={"message": "Token is missing"})
|
71 |
try:
|
72 |
-
jwt.decode(token, SECRET_KEY, algorithms=["HS256"])
|
73 |
except:
|
74 |
raise HTTPException(status_code=401, detail={"message": "Token is invalid"})
|
75 |
return token
|
|
|
69 |
if not token:
|
70 |
raise HTTPException(status_code=401, detail={"message": "Token is missing"})
|
71 |
try:
|
72 |
+
pass # disable temporarily #jwt.decode(token, SECRET_KEY, algorithms=["HS256"])
|
73 |
except:
|
74 |
raise HTTPException(status_code=401, detail={"message": "Token is invalid"})
|
75 |
return token
|