Skip to content

fix(remote-verification): show the session ID when results are delivered to the backend - #406

Merged
avner-m merged 1 commit into
masterfrom
am/remote-verifier-session-id-results
Nov 9, 2026
Merged

avner-m merged 1 commit into
masterfrom
am/remote-verifier-session-id-results

Conversation

@avner-m

@avner-m avner-m commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

The remote verification sample apps redirect back from the wallet using a custom URL scheme. With that redirect, MATTR VII delivers the verification results to the verifier's backend, and requestMobileCredentials returns a successful result carrying the session ID, with no mobileCredentialResponse.

Before this change the apps didn't handle that case. iOS stayed on "Waiting for response...", Android showed an empty list, and React Native threw "No verification results were returned by the tenant."

Changes

  • iOS (ContentView.swift): new sessionId published property, set when mobileCredentialResponse is nil. The response view displays it as selectable text.
  • Android (MainActivity.kt): new sessionId state flow, set when mobileCredentialResponse is null. Content displays it in a SelectionContainer.
  • React Native (App.tsx, complete app): shows the session ID in an alert instead of throwing. The starter app has no result handling, so it is unchanged.
  • READMEs (iOS, Android): describe the session ID behavior.

When the results are returned to the app, all three apps render them exactly as before.

The quickstart and tutorial in MATTR Learn are updated to match, including a step to retrieve the results with GET /v2/presentations/sessions/{sessionId}/result: mattrinternal/mattr-learn#1500.

Verification

  • iOS: build and run in Xcode (only swiftc -parse was run)
  • Android: build and run in Android Studio (not compiled)
  • React Native: yarn tsc and run on a device (not type-checked)
  • End to end against a 12.28.0 tenant: the session ID is displayed, and the result can be retrieved with it within five minutes

🤖 Generated with Claude Code

…red to the backend

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@avner-m
avner-m requested a review from a team as a code owner November 8, 2026 22:58
@avner-m
avner-m merged commit 6f83196 into master Nov 9, 2026
4 checks passed
@avner-m
avner-m deleted the am/remote-verifier-session-id-results branch November 9, 2026 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants