max_length of password in full-stack-fastapi-template is too short #1448
Unanswered
michaelAlvarino
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
The documentation for the full-stack-fastapi-template mentions using the command
python3 -c "import secrets; print(secrets.token_urlsafe(32))"
to generate secrets and replace the values in the .env file. According to python documentationSince the app model has a max_length of 40, this causes a conflict. I have a PR open to update the password max_length to 45 here: #1447. Alternatively we could update the documentation, but I like having a power of 2 as the number of bytes aesthetically and 16 seems too short for no particular reason. Maybe there's good technical reasons, but I don't have them.
Operating System
macOS
Operating System Details
Sequoia 15.1.1 (24B91)
Python Version
Python 3.13.0
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions