mongodb-labs / full-stack-fastapi-mongodb

Full stack, modern web application generator. Using FastAPI, MongoDB as database, Docker, automatic HTTPS and more.
MIT License
510 stars 86 forks source link

[Bugfix] Remove SecretStr from Token Schema #45

Closed Jibola closed 6 months ago

Jibola commented 6 months ago

Bugfix

class Token(BaseModel):
    access_token: SecretStr
    refresh_token: SecretStr
    token_type: str

Caused errors when transmitting a payload to the frontend. The frontend subsequently read the input as access_token: '*****' making users unable to leverage the login functionality. This fix returns the it back to using str.