Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebAuthn ¶
NewWebAuthn 根据 HTTP 请求动态创建 WebAuthn 实例
func ParseUserID ¶
ParseUserID 从 WebAuthnID 字节还原 user ID
Types ¶
type User ¶
type User struct {
Inner *biz.User
Passkeys []*biz.UserPasskey
}
User 适配 webauthn.User 接口
func (*User) WebAuthnCredentials ¶
func (u *User) WebAuthnCredentials() []webauthn.Credential
func (*User) WebAuthnDisplayName ¶
func (*User) WebAuthnID ¶
func (*User) WebAuthnName ¶
Click to show internal directories.
Click to hide internal directories.