full-stack-fastapi-mongodb icon indicating copy to clipboard operation
full-stack-fastapi-mongodb copied to clipboard

Example stack: unable to login with "[email protected]"and changethis pwd

Open shouari opened this issue 1 year ago • 4 comments

Hello, I want to test the example stack, but cannot login with the [email protected] and changethis password.

Am I missing something?

shouari avatar Apr 12 '24 13:04 shouari

Hi @shouari, we had a couple of bug fixes this morning, can you please try again?

blink1073 avatar Apr 15 '24 18:04 blink1073

Hi, @shouari, we recently merged a PR #42 in response to another issue. We have strong reason to believe that this should resolve your issue as well. Can you confirm this by running the quickstart guide?

Jibola avatar May 02 '24 15:05 Jibola

hi, I have the same problem and cannot login via the FE's login page. I found the error to be the response model of the /login route.

class Token(BaseModel):
    # access_token: SecretStr
    # refresh_token: SecretStr | None = None
    access_token: str
    refresh_token: str | None = None

if you use SecretStr the return token will be censored (as in *****), and FE cannot decode them.

anh56 avatar May 05 '24 12:05 anh56

Hi @anh56 we recently merged #45 which targets this issue exactly. This should now resolve any further occurrence of this issue.

Jibola avatar May 21 '24 17:05 Jibola