Skip to content

Commit 4c6515f

Browse files
Updated AuthenticatorData members to be mutable
1 parent 09e080d commit 4c6515f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/WebAuthn/Ceremonies/Shared/AuthenticatorData.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ import SwiftCBOR
1919
/// Data created and/ or used by the authenticator during authentication/ registration.
2020
/// The data contains, for example, whether a user was present or verified.
2121
public struct AuthenticatorData: Equatable, Sendable {
22-
let relyingPartyIDHash: [UInt8]
23-
let flags: AuthenticatorFlags
24-
let counter: UInt32
22+
var relyingPartyIDHash: [UInt8]
23+
var flags: AuthenticatorFlags
24+
var counter: UInt32
2525
/// For attestation signatures this value will be set. For assertion signatures not.
26-
let attestedData: AttestedCredentialData?
27-
let extData: [UInt8]?
26+
var attestedData: AttestedCredentialData?
27+
var extData: [UInt8]?
2828

2929
init(
3030
relyingPartyIDHash: SHA256Digest,

0 commit comments

Comments
 (0)