models

package
v0.0.0-...-4744f9f Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Passkey

type Passkey struct {
	ID   uuid.UUID           `json:"id"`
	Name string              `json:"name"`
	Cred webauthn.Credential `json:"-"`
}

type User

type User struct {
	KTHID                   string
	UGKTHID                 string
	Email                   string
	FirstName               string
	FamilyName              string
	YearTag                 string
	MemberTo                time.Time
	WebAuthnID              []byte
	FirstNameChangeRequest  string
	FamilyNameChangeRequest string
}

type WebAuthnUser

type WebAuthnUser struct {
	User     *User
	Passkeys []Passkey
}

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) WebAuthnIcon

func (u WebAuthnUser) WebAuthnIcon() string

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