Skip to content

Commit 6c4421a

Browse files
committed
make generateChallengeString public (temporary)
1 parent 46bb8e2 commit 6c4421a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/WebAuthn/WebAuthnManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ extension WebAuthnManager {
241241
/// Generate a suitably random value to be used as an attestation or assertion challenge
242242
/// - Throws: An error if something went wrong while generating random byte
243243
/// - Returns: 32 bytes
244-
func generateChallengeString() throws -> [UInt8] {
244+
public func generateChallengeString() throws -> [UInt8] {
245245
var bytes = [UInt8](repeating: 0, count: 32)
246246
let status = SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes)
247247
guard status == errSecSuccess else { throw WebAuthnManagerError.challengeGenerationFailed }

0 commit comments

Comments
 (0)