Files
sshecret/packages/sshecret-admin/src/sshecret_admin/auth/constants.py
2025-05-30 10:59:09 +02:00

9 lines
263 B
Python

"""Constants."""
JWT_ALGORITHM = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES = 30
# I know refresh tokens are supposed to be long-lived, but 6 hours for a
# sensitive application, seems reasonable.
REFRESH_TOKEN_EXPIRE_HOURS = 6
LOCAL_ISSUER = "urn:sshecret:admin:auth"