Files
rclone/docs/plans
Lucas WintherandClaude Opus 5.5 ea41704ade protondrive: add session with safe token refresh
Add the session used for authenticated API calls: it sends x-pm-uid,
the bearer token, x-pm-appversion and the Proton Accept header, decodes
failures into api.Error, and on HTTP 401 refreshes the tokens and
retries once. Refresh is single-flight, first adopts tokens another
session saved to the shared store, and on a rejected refresh token
returns a fatal "session expired" error without clearing the stored
credentials or retrying the refresh. The session also tracks the
server's clock from the Date header.

The app version maps development builds to the "alpha" channel, as
Proton's x-pm-appversion grammar has no "dev" channel.

The fake server gains users, sessions, single-use refresh tokens and
401 for invalid access tokens on authenticated routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 10:33:43 +01:00
..

Plans

Fork-only. Implementation plans from the superpowers writing-plans workflow. Transient: a plan lives only on its feature branch and is removed with git rm before the merge request is opened. This README stays.

  • Naming: NNN-short-slug.md, matching its spec number.
  • Links back to its spec. Bite-sized checkbox tasks with exact file paths, test commands, and commit checkpoints.
  • Written for an engineer with zero context for this codebase - spell out the obvious.
  • Tick checkboxes as you go so another agent can resume an interrupted session.
  • Front matter: status: draft | approved | in-progress. There is no done - a finished plan is deleted.