make signature algorithm configurable (#7)

This commit is contained in:
Shuchang Zheng
2024-03-03 17:01:14 -05:00
committed by GitHub
parent 6f7eb006d5
commit 2123b2da31
2 changed files with 9 additions and 3 deletions

View File

@@ -29,7 +29,10 @@ class Settings(BaseSettings):
JSON_LOGGING: bool = False
PORT: int = 8000
# Secret key for JWT. Please generate your own secret key in production
SECRET_KEY: str = "RX1NvhujcJqBPi8O78-7aSfJEWuT86-fll4CzKc_uek"
# Algorithm used to sign the JWT
SIGNATURE_ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 7 # one week
SKYVERN_API_KEY: str = "SKYVERN_API_KEY"