@app.post('/auth/token', response_model=Token, summary='Grab the Bearer token')
async def login_for_access_token(form_data: OAuth2PasswordRequestForm=Depends()):
    user = (await AuthUtils.authenticate_user(form_data.username, form_data.password))
    if (not user):
        raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail='Incorrect username or password', headers={'WWW-Authenticate': 'Bearer'})
    access_token_expires = timedelta(minutes=AuthUtils.ACCESS_TOKEN_EXPIRE_MINUTES)
    access_token = (await AuthUtils.create_access_token(data={'sub': user.email}, expires_delta=access_token_expires))
    return {'access_token': access_token, 'token_type': 'bearer'}
@app.post('/auth/token', response_model=Token, summary='Grab the Bearer token')
async def login_for_access_token(form_data: OAuth2PasswordRequestForm=Depends()):
    user = (await AuthUtils.authenticate_user(form_data.username, form_data.password))
    if (not user):
        raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail='Incorrect username or password', headers={'WWW-Authenticate': 'Bearer'})
    access_token_expires = timedelta(minutes=AuthUtils.ACCESS_TOKEN_EXPIRE_MINUTES)
    access_token = (await AuthUtils.create_access_token(data={'sub': user.email}, expires_delta=access_token_expires))
    return {'access_token': access_token, 'token_type': 'bearer'}