Skip to content

Handle deep link connection timeout in LobstrAdapter #770

Description

@Kingsman-99

Description

LobstrAdapter opens a deep link to the Lobstr wallet app and waits for a callback but never times out if the user ignores the deep link or the app is not installed. The promise hangs indefinitely.

Acceptance Criteria

  • The adapter waits at most connectionTimeoutMs (default 60 000, configurable) for a deep link response
  • After the timeout, the pending promise rejects with a WalletConnectionTimeoutError
  • The deep link listener is cleaned up on timeout
  • Unit tests pass

Context

  • Target file: src/wallets/adapters/LobstrAdapter.ts
  • Use setTimeout with a clearTimeout cleanup; do not use a busy loop

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions