whythawk / full-stack-fastapi-postgresql

Full stack, modern web application generator. Using FastAPI, PostgreSQL as database, Nuxt3, Docker, automatic HTTPS and more.
MIT License
231 stars 47 forks source link

Change tokenUrl #11

Closed Choiuijin1125 closed 1 year ago

Choiuijin1125 commented 1 year ago

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

turukawa commented 1 year ago

Hi @Choiuijin1125

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

turukawa commented 1 year ago

Release 0.7.1 should fix this.