Documentation ¶
Index ¶
Constants ¶
View Source
const ChallengeSize = 32
ChallengeSize is the size of a challenge in bytes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Challenge ¶
type Challenge = [ChallengeSize]byte
Challenge is a randomly generated value that is sent to the client and signed by the client device.
func GenerateChallenge ¶
GenerateChallenge generates a random challenge for WebAuthn authentication. The challenge should be sent to the client, then signed by the client device and sent back to the server.
Click to show internal directories.
Click to hide internal directories.