You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/EudiWalletKit/EudiWalletKit.docc/IssueDocuments.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,15 +189,25 @@ let issuedDoc = try await wallet.requestDeferredIssuance(
189
189
```
190
190
191
191
### Document Reissuance
192
-
- Added `reissueDocument(documentId:credentialOptions:keyOptions:promptMessage:)` method to `EudiWallet` for reissuing an existing document using previously stored issuance metadata and authorization data.
193
-
- Retrieves the document's metadata from storage and resolves the appropriate OpenID4VCI service via the credential issuer identifier.
194
-
- If persisted authorization data is available, it is forwarded to the service to avoid re-authentication.
195
-
- Falls back to the original issuance metadata for `credentialOptions` and `keyOptions` when not explicitly provided.
192
+
193
+
Use the `reissueDocument(documentId:credentialOptions:keyOptions:promptMessage:backgroundOnly:)` method to reissue an existing document using previously stored issuance metadata and authorization data.
194
+
195
+
- Retrieves the document's metadata from storage and resolves the appropriate OpenID4VCI service via the credential issuer identifier.
196
+
- If persisted authorization data is available, it is forwarded to the service to avoid re-authentication.
197
+
- Falls back to the original issuance metadata for `credentialOptions` and `keyOptions` when not explicitly provided.
198
+
- When `backgroundOnly` is set to `true`, reissuance only proceeds if stored authorization data is available. If no stored authorization exists, an error is thrown. This is useful for automatic credential refresh without user interaction.
196
199
197
200
```swift
201
+
// Interactive reissuance (default) - may prompt the user for authentication
198
202
let reissued =tryawait wallet.reissueDocument(
199
203
documentId: existingDocument.id,
200
204
credentialOptions: credentialOptions, // optional, defaults to original
201
205
keyOptions: keyOptions, // optional, defaults to original
202
206
)
207
+
208
+
// Background reissuance - only succeeds if stored authorization exists
Copy file name to clipboardExpand all lines: changelog.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,38 @@
1
+
## v0.23.1
2
+
3
+
### Background Reissuance and DPoP Propagation
4
+
- Added `backgroundOnly` parameter to `reissueDocument` method. When set to `true`, reissuance only proceeds if stored authorization data is available; otherwise it throws an error. This enables automatic credential refresh without user interaction.
5
+
- DPoP key ID is now propagated through the issuance flow and persisted in document metadata, enabling DPoP-protected refresh and reissuance flows.
6
+
7
+
```swift
8
+
let reissued = try await wallet.reissueDocument(
9
+
documentId: existingDocument.id,
10
+
backgroundOnly: true, // only reissue if stored auth exists
11
+
credentialOptions: credentialOptions, // optional, defaults to original
12
+
keyOptions: keyOptions, // optional, defaults to original
13
+
)
14
+
15
+
16
+
// Background reissuance - only succeeds if stored authorization exists
17
+
let reissued = try await wallet.reissueDocument(
18
+
documentId: existingDocument.id,
19
+
backgroundOnly: true,
20
+
)
21
+
22
+
```
23
+
24
+
25
+
26
+
### KB-JWT Fix for Decentralized Identifier Scheme
27
+
- Fixed issue where KB-JWT `aud` claim used a stripped DID instead of the full `client_id` for the `decentralized_identifier` scheme. The session transcript and KB-JWT now correctly include the resolved client identifier. Fixes [#308](https://github.com/eu-digital-identity-wallet/eudi-lib-ios-wallet-kit/issues/308).
28
+
29
+
### Dependency Updates
30
+
- `eudi-lib-sdjwt-swift` updated to 0.14.1
31
+
- `eudi-lib-ios-siop-openid4vp-swift` updated to 0.30.1
32
+
- `eudi-lib-ios-iso18013-data-transfer` updated to 0.11.2
0 commit comments