Module exposing: WebAuthnID, WebAuthnName, WebAuthnDisplayName, WebAuthnCredentials, passkeyUser
// Source: https://github.com/aakarim/OpenLore | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package passkeys
import (
"github.com/go-webauthn/webauthn/webauthn"
)
// passkeyUser implements webauthn.User for registration and login ceremonies.
type passkeyUser struct {
id []byte
name string
credentials []webauthn.Credential
}
func (u *passkeyUser) WebAuthnID() []byte { return u.id }
func (u *passkeyUser) WebAuthnName() string { return u.name }
func (u *passkeyUser) WebAuthnDisplayName() string { return u.name }
func (u *passkeyUser) WebAuthnCredentials() []webauthn.Credential { return u.credential
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key