Skip to content

Token file should be stored in application data directory #421

Description

@pederhan

We currently save the token file outside the standard application directories:

tokens_path: ClassVar[str] = os.path.join(os.getenv("HOME", ""), ".mreg-cli_auth_token.json")

It would be ideal to use a platformdirs directory for this. Defining mreg_cli.dirs.DATA_DIR seems appropriate for this purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions