From 202995fc8afab753a9e5c441932779c9a5249c96 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 30 Nov 2026 11:18:32 +0100 Subject: feat(todo): read the Vikunja token from pass [todo] pass names the pass entry holding the API token; it is read once and kept in memory, and read again after Vikunja answers 401. No token file on disk. Co-Authored-By: Claude Opus 5.5 --- docs/superpowers/specs/2026-11-30-todo-design.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs/superpowers/specs') diff --git a/docs/superpowers/specs/2026-11-30-todo-design.md b/docs/superpowers/specs/2026-11-30-todo-design.md index 72ac21a..b451c90 100644 --- a/docs/superpowers/specs/2026-11-30-todo-design.md +++ b/docs/superpowers/specs/2026-11-30-todo-design.md @@ -15,8 +15,10 @@ with no due date (only a reminder) after those. At most 3 lines plus - `[todo] url`, the Vikunja API base (`http://host:3456`). Empty: the module reports nothing and starts no thread. -- Token: `~/.config/deck-it/vikunja-token`, a Vikunja API token allowed to - read and update tasks. Never in the repo or the shipped config. +- Token: a Vikunja API token allowed to read and update tasks, the first + line of the pass entry `[todo] pass`. Read once and kept in memory; a 401 + drops it so the next read asks pass again. Never in the repo or the + shipped config. - A thread reads `GET /api/v2/tasks?filter=done = false && (due_date < now/d+1d || reminders < now)` every 60s and right after an action; `/api/v1/info`'s `frontend_url` once for links. -- cgit v1.2.3