Versions in this module Expand all Collapse all v0 v0.2.0 Sep 3, 2026 Changes in this version + const COSEAlgorithmES256 + const MaxUserIDLength + type AttestationPreference uint32 + const AttestationAny + const AttestationDirect + const AttestationIndirect + const AttestationNone + type RegisterRequest struct + Algorithms []int32 + Attachment Attachment + Attestation AttestationPreference + Challenge []byte + Discoverable bool + Exclude []Credential + Origin string + RPID string + RPName string + TimeoutMilliseconds uint32 + User User + Verification UserVerification + Window uintptr + type Registration struct + AttestationObject []byte + AuthenticatorData []byte + ClientDataJSON []byte + CredentialID []byte + Discoverable bool + DiscoverableKnown bool + Format string + Transport Transport + func Register(context.Context, RegisterRequest) (*Registration, error) + func Register(ctx context.Context, req RegisterRequest) (*Registration, error) + type User struct + DisplayName string + ID []byte + Name string v0.1.0 Sep 3, 2026 Changes in this version + var ErrCancelled = errors.New("webauthn: the operation was cancelled") + var ErrUnsupported = errors.New("webauthn: the Windows WebAuthn API is not available here") + func APIVersion() uint32 + func Available() bool + type Assertion struct + AuthenticatorData []byte + ClientDataJSON []byte + CredentialID []byte + Signature []byte + Transport Transport + UserID []byte + func Assert(context.Context, Request) (*Assertion, error) + func Assert(ctx context.Context, req Request) (*Assertion, error) + type Attachment uint32 + const AnyAttachment + const CrossPlatform + const Platform + func (a Attachment) String() string + type Credential struct + ID []byte + type Error struct + HResult uint32 + Name string + Op string + func (e *Error) Cancelled() bool + func (e *Error) Error() string + func (e *Error) Unavailable() bool + type Request struct + Allow []Credential + Attachment Attachment + Challenge []byte + Origin string + RPID string + TimeoutMilliseconds uint32 + Verification UserVerification + Window uintptr + type Transport uint32 + const TransportBLE + const TransportHybrid + const TransportInternal + const TransportNFC + const TransportSmartCard + const TransportTest + const TransportUSB + const TransportUnknown + func (t Transport) Carried() (carried, ok bool) + func (t Transport) String() string + type UserVerification uint32 + const VerificationAny + const VerificationDiscouraged + const VerificationPreferred + const VerificationRequired + func (v UserVerification) String() string