Skip to content

Commit 06daa2c

Browse files
committed
Fix warnings for CI
1 parent d268a35 commit 06daa2c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Sources/WebAuthn/WebAuthn.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,20 @@ public enum WebAuthn {
131131
static func parseAttestationObject(_ bytes: [UInt8], logger: Logger) throws -> AttestedCredentialData? {
132132
let minAuthDataLength = 37
133133
let minAttestedAuthLength = 55
134-
let maxCredentialIDLength = 1023
134+
// TODO - fix
135+
// let maxCredentialIDLength = 1023
135136
// What to do when we don't have this
136137
var credentialsData: AttestedCredentialData? = nil
137138

138139
guard bytes.count >= minAuthDataLength else {
139140
throw WebAuthnError.authDataTooShort
140141
}
141142

142-
let rpIDHashData = bytes[..<32]
143+
// TODO: Use
144+
// let rpIDHashData = bytes[..<32]
143145
let flags = AuthenticatorFlags(bytes[32])
144-
let counter: UInt32 = Data(bytes[33..<37]).toInteger(endian: .big)
146+
// TODO: Use
147+
// let counter: UInt32 = Data(bytes[33..<37]).toInteger(endian: .big)
145148

146149
var remainingCount = bytes.count - minAuthDataLength
147150

0 commit comments

Comments
 (0)