webauthn-swift icon indicating copy to clipboard operation
webauthn-swift copied to clipboard

Support Custom ChallengeGenerator

Open zunda-pixel opened this issue 2 months ago • 3 comments

I want to use secure challenge value.

let webAuthn = WebAuthnManager(
  configuration: .init(
    relyingPartyID: "RELYING_PARTY_ID",
    relyingPartyName: "RELYING_PARTY_NAME",
    relyingPartyOrigin: "RELYING_PARTY_ORIGIN"
  ),
  challengeGenerator: .init {
    SymmetricKey(size: .bits256).withUnsafeBytes { Array($0) } // 32 bytes
  }
)

zunda-pixel avatar Sep 15 '25 09:09 zunda-pixel