Skip to content

Conversation

@mkurapov
Copy link
Contributor

@mkurapov mkurapov commented Nov 28, 2025

Changes proposed in this pull request

  • Adding simple callback server to the peer-to-peer app example

Context

During hackathons, when participants used the peer-to-peer example app, after going through authorization at the test wallet, they would be redirect to a not so nice 202 "Accepted" page screen. Now, the peer-to-peer example includes a callback server for handling the finish redirect. IMO its a cleaner experience and also the script now demonstrates how they can use the finish in their own application.

Before:
Screenshot 2025-11-28 at 16 29 48

After:

Screenshot 2025-11-28 at 16 25 27

@changeset-bot
Copy link

changeset-bot bot commented Nov 28, 2025

⚠️ No Changeset found

Latest commit: 5c844e4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mkurapov mkurapov changed the title feat: adding callback server for OP finish call feat: adding callback server for peer-to-peer example Nov 28, 2025
Comment on lines +91 to +92
metadata: {
description: 'From peer-to-peer example script'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding metadata descriptions so its obvious how test wallet displays these, such that people can customize it for their use case

Image

@mkurapov mkurapov requested a review from sidvishnoi December 1, 2025 14:13
sidvishnoi
sidvishnoi previously approved these changes Dec 1, 2025
return new Promise((resolve) => {
let server
const app = express()
app.use(express.json())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need this.

Suggested change
app.use(express.json())

@mkurapov mkurapov merged commit b91823b into main Dec 1, 2025
5 checks passed
@sidvishnoi sidvishnoi deleted the mk/peer-to-peer-example-callback branch December 2, 2025 03:37
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.

3 participants