Change tokenUrl
Choiuijin1125 opened this issue · comments
Jin commented
Hi !
Thanks you for amazing contribution :)
I just found that we need to change app/api/deps/
reusable_oauth2 = OAuth2PasswordBearer(tokenUrl=f"(tokenUrl=f"{settings.API_V1_STR}/login/access-token")
->
reusable_oauth2 = OAuth2PasswordBearer(tokenUrl=f"{settings.API_V1_STR}/login/oauth")
Whatelse it will throw error in swagger authentication
Gavin Chait commented
Thanks, good catch. I'll fix that shortly. Was thinking I might do a quick refactor for SqlAlchemy 2.0 as well ...
Gavin Chait commented
Release 0.7.1 should fix this.