mirror of
https://github.com/revanced/revanced-releases-api.git
synced 2025-04-29 22:14:28 +02:00
10 lines
279 B
Python
10 lines
279 B
Python
import os
|
|
import toml
|
|
from pydantic import BaseModel
|
|
|
|
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']
|
|
|