obsidian-todoist-text icon indicating copy to clipboard operation
obsidian-todoist-text copied to clipboard

[feature] Move Todoist API token to it's own file

Open gdicker1 opened this issue 2 years ago • 2 comments

Move the API token to its own file and read that instead of the authToken variable in data.json.

At least this would make it easier for me to use the Obisdian-Git plugin. Since I could then just add this file to my .gitignore, I could still use the same plugins across devices and not have to worry about accidentally leaking my Todoist API token. This could be similar to the approach in Todoist Sync Plugin especially here in index.ts.

gdicker1 avatar Feb 15 '23 18:02 gdicker1

Please let me know if there's a way I could better format this! I think it could be "feature request."

gdicker1 avatar Feb 15 '23 18:02 gdicker1

Looking into this, I see that the authToken is currently in data.json file.

Adding that the authToken file in the Todoist Sync plugin is generated by token.ts, which is then referenced by the index.ts mentioned above.

skullbunnygalaxy avatar Mar 04 '24 20:03 skullbunnygalaxy