We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46bb8e2 commit 6c4421aCopy full SHA for 6c4421a
Sources/WebAuthn/WebAuthnManager.swift
@@ -241,7 +241,7 @@ extension WebAuthnManager {
241
/// Generate a suitably random value to be used as an attestation or assertion challenge
242
/// - Throws: An error if something went wrong while generating random byte
243
/// - Returns: 32 bytes
244
- func generateChallengeString() throws -> [UInt8] {
+ public func generateChallengeString() throws -> [UInt8] {
245
var bytes = [UInt8](repeating: 0, count: 32)
246
let status = SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes)
247
guard status == errSecSuccess else { throw WebAuthnManagerError.challengeGenerationFailed }
0 commit comments