Skip to content

chore(react-native-verifier-tutorials): update for Verifier SDK 10.0.0 - #333

Merged
avner-m merged 1 commit into
masterfrom
chore/rn-verifier-tutorials-10.0.0
Sep 9, 2026
Merged

avner-m merged 1 commit into
masterfrom
chore/rn-verifier-tutorials-10.0.0

Conversation

@avner-m

@avner-m avner-m commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Updates both React Native Verifier tutorial projects for @mattrglobal/mobile-credential-verifier-react-native 10.0.0, which ships on 9 September 2026. Mirrors the Holder SDK 10.0.0 sample-app update.

What changed

SDK Backend (tethering) is now required. initialize takes a platformConfiguration with a tenant host and a verifier application ID, and can now fail with FailedToRegister or InvalidLicense. This is the significant change for the in-person project, which previously called initialize() with no arguments and needed no MATTR VII tenant at all. It gains a Constants.ts modelled on the remote project's, with per-platform application ID placeholders.

Remote verification. requestMobileCredentials no longer takes applicationId, and OnlinePresentationSessionResult is discriminated on isSuccess rather than carrying an optional error. The old comment in App.tsx stating "There is no isSuccess flag" is now wrong and has been replaced.

Both projects. getTrustedIssuerCertificates returns a Result, addTrustedIssuerCertificates can now fail with InvalidLicense, MobileCredentialResponse.credentials and credentialErrors are required arrays, and VerificationResult is discriminated on verified so reason is reached by narrowing.

All four package.json files move from ^9.0.1 to ^10.0.0. The two starter projects are blank scaffolds, so only their dependency changes.

Not done here

The lockfiles are deliberately untouched, following the Holder 10.0.0 precedent. They can only be regenerated once 10.0.0 is on npm, which is also the first point at which these apps can be typechecked. There is no CI for the sample apps, so please treat a local tsc after publication as the real gate.

Related

  • SDK changelog: mattrinternal/js-credential-sdk#1981, stacked on #1977
  • The MATTR Learn tutorials inline this source verbatim, so the matching Learn PR lands in the same cycle.

Updates both React Native Verifier tutorial projects for the breaking changes
in @mattrglobal/mobile-credential-verifier-react-native 10.0.0:

- SDK Backend (tethering) is now required, so `initialize` takes a
  `platformConfiguration` with a tenant host and verifier application ID. This
  is new for the in-person project, which previously needed no tenant at all,
  so it gains a `Constants.ts` matching the remote project's.
- `requestMobileCredentials` no longer takes `applicationId`; it uses the one
  supplied at initialization.
- `OnlinePresentationSessionResult` is discriminated on `isSuccess` instead of
  carrying an optional `error`.
- `getTrustedIssuerCertificates` now returns a `Result`, and
  `addTrustedIssuerCertificates` can now fail with `InvalidLicense`, so both
  are unwrapped rather than used directly.
- `MobileCredentialResponse.credentials` and `credentialErrors` are required
  arrays, and `VerificationResult` is discriminated on `verified`, so `reason`
  is reached by narrowing rather than optional chaining.

The lockfiles are deliberately untouched. They must be regenerated once 10.0.0
is published, which is also when this can first be typechecked.
@avner-m
avner-m requested a review from a team as a code owner September 7, 2026 01:46
@avner-m
avner-m merged commit e104847 into master Sep 9, 2026
2 checks passed
@avner-m
avner-m deleted the chore/rn-verifier-tutorials-10.0.0 branch September 9, 2026 21:40
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