mirror of
https://github.com/revanced/revanced-releases-api.git
synced 2025-04-29 22:14:28 +02:00
14 lines
425 B
Python
14 lines
425 B
Python
from datetime import timedelta
|
|
import os
|
|
import toml
|
|
from datetime import timedelta
|
|
from pydantic import BaseModel
|
|
from fastapi_paseto_auth import AuthPASETO
|
|
|
|
config: dict = toml.load("config.toml")
|
|
|
|
class PasetoSettings(BaseModel):
|
|
authpaseto_secret_key: str = os.environ['SECRET_KEY']
|
|
authpaseto_access_token_expires: int | bool = config['auth']['access_token_expires']
|
|
authpaseto_denylist_enabled: bool = True
|