Skip to content

feat(auth): add opt-in local macOS OTP provider #236

Open

Description

@KalebCole

Problem

On a configured local macOS agent, a Partiful reauthentication can require switching into a browser or manually relaying an SMS code even though the authenticated local Messages data is already available. The current CLI supports only private-terminal prompts.

Goal

Offer an explicit, opt-in local macOS OTP source for Partiful CLI reauthentication while preserving the prompt-based flow as the default for all users.

Suggestions

  • Add a macOS-only local Messages / imsg OTP source behind an explicit auth option.
  • Keep manual phone and code prompts as the default and fallback path.
  • Surface prerequisite and timeout failures clearly, with a direct command to retry using manual prompts.
  • Restrict selection to a fresh Partiful verification code for the active request.
  • Do not print, log, persist, or return OTP values.
  • Keep provider boundaries testable with fixtures, not real Messages data or a live Partiful auth request.
  • Consider separately managed local phone-number retrieval only if unattended local reauthentication is in scope.

Acceptance criteria

  • Manual auth works unchanged without imsg or macOS permissions.
  • Opt-in local OTP retrieval has deterministic success, timeout, unavailable-prerequisite, and rejected-code behavior.
  • OTP values never appear in JSON output, stderr, logs, tests, or persisted configuration.
  • Automated tests do not access live SMS, browser data, credentials, or remote authentication endpoints.

Non-goals

  • Making browser login authenticate the CLI.
  • Generic --code, arbitrary command execution, or environment-variable OTP injection.
  • Automatic resend or repeated verification attempts.

Activity

  1. added
    enhancement
    on Sep 15, 2026
  2. KalebCole commented on Nov 14, 2026

    @KalebCole
    OwnerAuthor

    Triage bot: out of scope as written. Auth login is human-attended, and reading local Messages data reaches outside Partiful. Recommending close as not planned. Leaving open for Kaleb to confirm.

  3. added
    wontfix
    held
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementheldwontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions