This commit is contained in:
Logan Cusano
2025-05-25 18:24:50 -04:00
parent e418de0ac9
commit c4a5f0ac1e
3 changed files with 4 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ def configure_jwt(app):
"""Configures JWT settings for the Quart app."""
app.config["JWT_SECRET_KEY"] = os.getenv("JWT_SECRET_KEY", "your-super-secret-key-that-should-be-in-env")
app.config["JWT_ACCESS_TOKEN_EXPIRES"] = 3600 # 1 hour
app.config["JWT_ALGORITHM"] = "HS256"
# You might need to set a custom error handler for unauthorized access
# @app.errorhandler(401)
# def unauthorized(error):