-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
Check existing issues
- I checked there isn't already an issue for the bug I encountered.
Describe the bug
When using Porto in dialog mode (both iframe and popup), signTypedDataAsync (and similarly signMessageAsync) resolves with undefined instead of the expected signature, even after the user successfully completes the signing process in the UI (including passkey auth). No JavaScript errors are thrown, and the UI indicates success. The promise resolves, but the result is undefined. This appears to be due to queued.result being undefined despite queued.status being 'success' in dialog.ts. I do not intend to submit a PR.
Link to Minimal Reproducible Example
https://github.com/ulixes/porto-signing-bug
Steps To Reproduce
- Clone the repo: git clone https://github.com/ulixes/porto-signing-bug
- Install dependencies: bun install
- Start the dev server: bun dev
- Open the app at http://localhost:5173/
- Click "Connect Wallet" and connect using Porto
- After connection, click "Sign In"
- Complete the passkey auth and approve the signature in the Porto dialog
- Check the browser console: the signature logs as undefined despite UI success
Porto Version
0.2.23
Viem Version
2.37.9
Wagmi Version
2.17.5
TypeScript Version
5.5.4
Anything else?
- Browser: Chrome (latest)
- OS: Linux
- Chain: Base Sepolia (84532)
- Node: v20.18.3
- Package manager: Bun 1.2.20
- The bug is consistent across dialog modes and affects SIWE authentication flows. No workarounds found.
Metadata
Metadata
Assignees
Labels
No labels