Gregniuki commited on
Commit
64a5e56
1 Parent(s): 361449c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -132,9 +132,6 @@ def validate_token(token: str):
132
  @app.get("/token/validate")
133
  async def token_validate(token: str = Depends(oauth2_scheme)):
134
  return validate_token(token)
135
-
136
- except jwt.PyJWTError:
137
- raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="Could not validate credentials")
138
 
139
  @app.post("/login")
140
  async def login(form_data: OAuth2PasswordRequestForm = Depends(), db: Session = Depends(get_db)):
 
132
  @app.get("/token/validate")
133
  async def token_validate(token: str = Depends(oauth2_scheme)):
134
  return validate_token(token)
 
 
 
135
 
136
  @app.post("/login")
137
  async def login(form_data: OAuth2PasswordRequestForm = Depends(), db: Session = Depends(get_db)):