17 lines
546 B
Go
Vendored
17 lines
546 B
Go
Vendored
package protocol
|
|
|
|
import "github.com/go-webauthn/webauthn/protocol/webauthncose"
|
|
|
|
//go:generate msgp
|
|
|
|
//msgp:replace webauthncose.COSEAlgorithmIdentifier with:int
|
|
//msgp:replace CredentialType with:string
|
|
//msgp:clearomitted
|
|
|
|
// CredentialParameter is the credential type and algorithm
|
|
// that the relying party wants the authenticator to create.
|
|
type CredentialParameter struct {
|
|
Type CredentialType `json:"type" msg:"typ,omitempty"`
|
|
Algorithm webauthncose.COSEAlgorithmIdentifier `json:"alg" msg:"alg,omitempty"`
|
|
}
|