refactor(jobs): use JobResponse model for bad requests

This commit is contained in:
Cullen Watson
2023-07-10 18:17:46 -05:00
parent 2c6e19254e
commit 2aa8ff7302
4 changed files with 13 additions and 10 deletions

View File

@@ -13,7 +13,6 @@ oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/api/auth/token")
def create_access_token(data: dict):
print(JWT_SECRET_KEY)
to_encode = data.copy()
expire = datetime.utcnow() + timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
to_encode.update({"exp": expire})