Skip to content

bug: pubky authorize can hang on authorizing during a busy session restore #993

Open

Description

@ovitrif

Refs:

What happened?

Tapping Authorize on a Pubky sign-in sheet sometimes hangs on "Authorizing…": nothing is logged, the relay never receives the approval, and the sheet cannot be dismissed. @jvsena42 saw it in 4 of 6 attempts on #987 and 1 of 3 on master, each time with Deferred session restoration and SharedStateBusy warnings in the log (comment).

Expected behavior

Authorize completes, or fails with an error the user can act on, and the sheet can always be closed.

Steps to Reproduce

  1. With a Pubky profile in Bitkit, open a bitkit://pubky-auth/signin link on a cold start, so the session restore is busy.
  2. Tap Authorize and enter the PIN.
  3. The sheet can stay on "Authorizing…" with nothing in the log.

Additional context

It coincides with Paykit shared-state contention during the session restore; synonymdev/bitkit-android#1543 removed the same wait on Android by letting approval need only the platform setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions