whythawk / full-stack-fastapi-postgresql

Full stack, modern web application generator. Using FastAPI, PostgreSQL as database, Nuxt3, Docker, automatic HTTPS and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change tokenUrl

Choiuijin1125 opened this issue · comments

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

Hi @Choiuijin1125

Thanks, good catch. I'll fix that shortly. Was thinking I might do a quick refactor for SqlAlchemy 2.0 as well ...

Release 0.7.1 should fix this.