passkey

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

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