Skip to content

Commit 0c01d91

Browse files
committed
Ensure redirectUrl is returned for completed vcapi exchanges when present.
1 parent d588bf0 commit 0c01d91

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Fixed
66
- Ensure `acceptedCryptosuites` are used when present.
7+
- Ensure `redirectUrl` is returned for completed vcapi exchanges when present.
78

89
## 15.2.0 - 2026-02-02
910

lib/exchanges/vcapi.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,13 @@ export class VcapiExchange extends Exchange {
9898
}
9999
}
100100
this._finish({verifiablePresentation});
101-
const value = verifiablePresentation ? {verifiablePresentation} : null;
101+
const value = {};
102+
if(verifiablePresentation) {
103+
value.verifiablePresentation = verifiablePresentation;
104+
}
105+
if(data?.redirectUrl) {
106+
value.redirectUrl = data.redirectUrl;
107+
}
102108
return {value, done: true};
103109
}
104110

0 commit comments

Comments
 (0)