Skip to content

v0.0.3

Latest

Choose a tag to compare

@rb58853 rb58853 released this 28 Aug 14:33
· 3 commits to main since this release

version 0.0.3 ⚙️

  • 🏗️ New Structure: The set_auth() function has been replaced with a new class called Fastauth(). From now on, it should be used in the way Fastauth().set_auth(...).

  • ⚙️ Customizable FastauthSettings via Parameters: The FastauthSettings can now be customized through parameters. It is possible to pass settings directly to the class: Fastauth(settings: FastauthSettings | dict). These options follow exactly the same configuration and format as defined in the fastauth.config file.

    class FastauthSettings(BaseModel):
        app_name: str = "fastauth-api"
        database_api_path: str | None = None
        master_token: str | None = None
        cryptography_key: str | None = None
        headers: dict | None = None
        master_token_paths: list | None = []
        access_token_paths: list | None = []