wesmoncrief / obsidian-todoist-text

MIT License
56 stars 5 forks source link

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

Open gdicker1 opened 1 year ago

gdicker1 commented 1 year ago

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 commented 1 year ago

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

skullbunnygalaxy commented 7 months ago

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.