from datetime import timedelta
from flaskr.config.utils import getenv, randstr


class Production:
    DEBUG = True
    SECRET_KEY = randstr(64)
    JWT_SECRET_KEY = randstr(64)
    JWT_ACCESS_TOKEN_EXPIRES = timedelta(hours=1)
    SESSION_COOKIE_SECURE = True,
    SESSION_COOKIE_HTTPONLY = True,
    PERMANENT_SESSION_LIFETIME = timedelta(minutes=5)
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SQLALCHEMY_DATABASE_URI = getenv('SQLALCHEMY_DATABASE_URI')
    BCRYPT_LOG_ROUNDS = 4
