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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions