Skip to content

Commit

Permalink
Fix reported issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dscreve committed Jan 29, 2025
1 parent b41c23b commit 6a6cbfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public struct PublicKeyCredentialCreationOptions: Codable, Sendable {
///
/// The Relying Party should store the challenge temporarily until the registration flow is complete. When
/// encoding using `Encodable`, the challenge is base64url encoded.
public var challenge: [UInt8]
public let challenge: [UInt8]

/// Contains names and an identifier for the user account performing the registration
public var user: PublicKeyCredentialUserEntity
Expand Down
2 changes: 1 addition & 1 deletion Sources/WebAuthn/Helpers/ChallengeGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//

public struct ChallengeGenerator: Sendable {
package struct ChallengeGenerator: Sendable {
var generate: @Sendable () -> [UInt8]

package static var live: Self {
Expand Down
7 changes: 1 addition & 6 deletions Sources/WebAuthn/WebAuthnManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ public struct WebAuthnManager: Sendable {
self.init(configuration: configuration, challengeGenerator: .live)
}

/// Create a new WebAuthnManager using the given configuration and custom challenge generator
///
/// - Parameters:
/// - configuration: The configuration to use for this manager.
/// - challengeGenerator: The challenge generator
public init(configuration: Configuration, challengeGenerator: ChallengeGenerator) {
package init(configuration: Configuration, challengeGenerator: ChallengeGenerator) {
self.configuration = configuration
self.challengeGenerator = challengeGenerator
}
Expand Down

0 comments on commit 6a6cbfa

Please sign in to comment.