pre-commit-ci-lite[bot]
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
2 deletions
-
docs_src/security/tutorial005_an_py310.py
-
docs_src/security/tutorial005_py310.py
|
|
|
@ -15,7 +15,9 @@ from pydantic import BaseModel, ValidationError |
|
|
|
|
|
|
|
# to get a string like this run: |
|
|
|
# openssl rand -hex 32 |
|
|
|
SECRET_KEY = os.environ.get("SECRET_KEY", "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7") |
|
|
|
SECRET_KEY = os.environ.get( |
|
|
|
"SECRET_KEY", "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7" |
|
|
|
) |
|
|
|
ALGORITHM = "HS256" |
|
|
|
ACCESS_TOKEN_EXPIRE_MINUTES = 30 |
|
|
|
|
|
|
|
|
|
|
|
@ -14,7 +14,9 @@ from pydantic import BaseModel, ValidationError |
|
|
|
|
|
|
|
# to get a string like this run: |
|
|
|
# openssl rand -hex 32 |
|
|
|
SECRET_KEY = os.environ.get("SECRET_KEY", "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7") |
|
|
|
SECRET_KEY = os.environ.get( |
|
|
|
"SECRET_KEY", "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7" |
|
|
|
) |
|
|
|
ALGORITHM = "HS256" |
|
|
|
ACCESS_TOKEN_EXPIRE_MINUTES = 30 |
|
|
|
|
|
|
|
|