challenge

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 2 Imported by: 0

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

func GenerateChallenge() (Challenge, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL