mcndt / obsidian-toggl-integration

A Toggl integration plugin for the popular knowledge base application Obsidian.
GNU General Public License v3.0
283 stars 21 forks source link

Please allow setting API token in a dedicated file #23

Open kquinsland opened 3 years ago

kquinsland commented 3 years ago

I was happy to see your plugin on the latest obsidian roundup! While testing it, I noticed that you store the API key in the data.js under your plugins' directory.

Can you please change where on disk the API token is stored? Basically, I am asking for an implementation similar to the todoist sync plugin; .obsidian/toggl-token or similar. The exact location does not matter, only that the token is kept separate; putting` it in the plugins' data dir would be fine.

I don't use obsidian sync for my vaults, i use a different solution. Since the plugin basically needs the token in plain text, i try to prevent my cloud sync clients from syncing certain files to the server.

mcndt commented 3 years ago

Good idea! I’ll work on that.