Skip to content

Commit d624a52

Browse files
author
Max Azatian
committed
JWT_SECRET_KEY fix 4: regex instead of separate function
1 parent 7c0e36e commit d624a52

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/app/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ class Settings(BaseSettings):
1010
PROJECT_NAME: str = "integr8scode"
1111
API_V1_STR: str = "/api/v1"
1212
SECRET_KEY: str = Field(
13-
...,
1413
min_length=32,
15-
regex="^(?!your_secret_key_here$|default_secret_key$).*$"
14+
pattern="^(?!your_secret_key_here$|default_secret_key$).*$"
1615
)
1716
ALGORITHM: str = "HS256"
1817
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30

0 commit comments

Comments
 (0)