Skip to content

CLI login fails with missing_presence_tokens when generating a signing key #4

Description

@smol-fork

Signing in and approving access through the official CLI succeeds, but signing-key generation fails.

Steps to reproduce:

  1. Run npx -y @paybox-sh/sdk@latest login.
  2. Sign in and approve access in the browser.
  3. Click Generate signing key.

Actual result: The page displays missing_presence_tokens, no signing key is generated, and the CLI keeps waiting for it. The signing-key page also appears to open a second time during the flow.

Expected result: A signing key is generated after the required confirmations, allowing CLI login to complete.

Environment: macOS, Chrome, passkey stored in 1Password. SDK latest resolved to 0.8.5.

Possible cause: From inspecting the publicly served JavaScript, the PayBox web app and the embedded MoonX iframe appear to expect different provisioning flows. The app seems to send a single-step request, while the iframe expects a separate preparation step followed by a confirmation with additional data. This could explain why the iframe reports missing presence tokens even after successful authentication.

Could you check whether the deployed web app and iframe versions are compatible?

Also, where can I find the source code for the PayBox SDK and the browser SDK used in this flow? Is there a public repository?

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions