passkey

package
v1.0.5-preview.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: AGPL-3.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	RegistrationSessionKey = "passkey_registration_session"
	LoginSessionKey        = "passkey_login_session"
	VerifySessionKey       = "passkey_verify_session"
)

Variables

This section is empty.

Functions

func BuildWebAuthn

func BuildWebAuthn(r *http.Request) (*webauthn.WebAuthn, error)

BuildWebAuthn constructs a WebAuthn instance using the current passkey settings and request context.

func PopSessionData

func PopSessionData(c *gin.Context, key string) (*webauthn.SessionData, error)

func SaveSessionData

func SaveSessionData(c *gin.Context, key string, data *webauthn.SessionData) error

Types

type WebAuthnUser

type WebAuthnUser struct {
	// contains filtered or unexported fields
}

func NewWebAuthnUser

func NewWebAuthnUser(user *model.User, credential *model.PasskeyCredential) *WebAuthnUser

func (*WebAuthnUser) ModelUser

func (u *WebAuthnUser) ModelUser() *model.User

func (*WebAuthnUser) PasskeyCredential

func (u *WebAuthnUser) PasskeyCredential() *model.PasskeyCredential

func (*WebAuthnUser) WebAuthnCredentials

func (u *WebAuthnUser) WebAuthnCredentials() []webauthn.Credential

func (*WebAuthnUser) WebAuthnDisplayName

func (u *WebAuthnUser) WebAuthnDisplayName() string

func (*WebAuthnUser) WebAuthnID

func (u *WebAuthnUser) WebAuthnID() []byte

func (*WebAuthnUser) WebAuthnName

func (u *WebAuthnUser) WebAuthnName() string

Jump to

Keyboard shortcuts

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