Skip to content

fix(examples): update js-sdk demo for @synonymdev/pubky 0.10 - #30

Merged
dzdidi merged 1 commit into
feat/paykit-payment-lock-demofrom
fix/js-demo-pubky-0-10
Aug 26, 2026
Merged

fix(examples): update js-sdk demo for @synonymdev/pubky 0.10#30
dzdidi merged 1 commit into
feat/paykit-payment-lock-demofrom
fix/js-demo-pubky-0-10

Conversation

@Taewa

@Taewa Taewa commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

@synonymdev/pubky 0.10 (#13) renamed two APIs the demo still called. Creator auth failed at step 1 (/api/demo-auth/start → HTTP 500).

  • start-demo-server.mjs: pubky.startAuthFlowstartCookieAuthFlow (same signature; startAuthFlow no longer exists)
  • lib/pubky.mjs: signer.signinBlocking()signinCookieBlocking()signinBlocking now requires a clientId, and both signin/signinBlocking panic (unreachable) against the pinned pubky-core homeserver (75eb1324)

Verified locally: creator → reader paykit-payment flow completes end to end.

🤖 Generated with Claude Code

The 0.10 bump (#13) renamed two APIs the demo still called, breaking the
creator auth flow at its first step:

- Pubky.startAuthFlow -> startCookieAuthFlow (same signature)
- Signer.signinBlocking() now requires a clientId. Its no-arg equivalent
is signinCookieBlocking(); the new signin/signinBlocking both panic
("unreachable") against the pinned pubky-core homeserver (75eb1324).
@Taewa
Taewa requested a review from dzdidi as a code owner August 26, 2026 15:33
@Taewa Taewa self-assigned this Aug 26, 2026
@dzdidi dzdidi closed this Aug 26, 2026
@dzdidi dzdidi reopened this Aug 26, 2026
@dzdidi
dzdidi merged commit bdffdbb into feat/paykit-payment-lock-demo Aug 26, 2026
2 of 3 checks passed
@dzdidi
dzdidi deleted the fix/js-demo-pubky-0-10 branch August 26, 2026 16:48
dzdidi added a commit that referenced this pull request Aug 26, 2026
* feat(js-sdk): expose authenticated session metadata

* fix(auth): harden iframe callback delivery

* feat(demo): add Paykit payment lock workflow

* feat(compose): add isolated Paykit payment demo

* docs: document Paykit payment demo workflow

* fix: support Bitkit local wallet tests (#11)

* fix: support Bitkit local wallet tests

* fix: complete external wallet Paykit demo

* chore: use fast Paykit handshake retries

* fix: make local wallet E2E startup reliable

* fix: hide recovery auth in external wallet mode

* fix: use external creator profile for reader setup

* examples: validate work locally

Signed-off-by: dzdidi <dzdidi@users.noreply.github.com>

* docs|examples: improve texts

Signed-off-by: dzdidi <dzdidi@users.noreply.github.com>

---------

Signed-off-by: dzdidi <dzdidi@users.noreply.github.com>
Co-authored-by: dzdidi <dzdidi@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* match loopback localhost

Signed-off-by: dzdidi <dzdidi@users.noreply.github.com>

* allign docs, fix outputs

Signed-off-by: dzdidi <dzdidi@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* feat(paykit): expose authenticated setup readiness (#28)

Signed-off-by: dzdidi <dzdidi@users.noreply.github.com>

* fix(examples): update js-sdk demo for @synonymdev/pubky 0.10 (#30)

The 0.10 bump (#13) renamed two APIs the demo still called, breaking the
creator auth flow at its first step:

- Pubky.startAuthFlow -> startCookieAuthFlow (same signature)
- Signer.signinBlocking() now requires a clientId. Its no-arg equivalent
is signinCookieBlocking(); the new signin/signinBlocking both panic
("unreachable") against the pinned pubky-core homeserver (75eb1324).

---------

Signed-off-by: dzdidi <dzdidi@users.noreply.github.com>
Co-authored-by: benk10 <ben.kaufman10@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Taehwa Kim <hadeath03@gmail.com>
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