Skip to content

Conversation

@SHAcollision
Copy link
Contributor

@SHAcollision SHAcollision commented Dec 1, 2025

  • First added some MRE (as tests) for panicking the wasm runtime from the JS caller in several where it could panic on the AuthFlow.

  • Guarded the JS AuthFlow wrapper with shared state and client-state errors so repeat awaits or polling after completion no longer trigger WASM null pointer panics.

  • Unrelated by needed: Documented the Rust and JS pattern for reusing a shared/global Pubky facade instead of recreating it per request.

After merging the lastes from main figured out a small bug as well:

  • Capped HTTP relay polling to three consecutive failures so auth flows surface request errors instead of retrying forever when the relay is unreachable.

@SHAcollision SHAcollision force-pushed the fix/rust-pointer-errors branch from 64049b5 to 284576f Compare December 1, 2025 21:29
@SHAcollision SHAcollision force-pushed the fix/rust-pointer-errors branch 3 times, most recently from c5b1b5d to cc1423a Compare December 3, 2025 11:58
@SHAcollision SHAcollision force-pushed the fix/rust-pointer-errors branch from cc1423a to b5c29e3 Compare December 3, 2025 11:59
@SHAcollision SHAcollision requested a review from 86667 December 3, 2025 12:34
@SHAcollision SHAcollision marked this pull request as ready for review December 3, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants