| 1234567891011121314151617181920212223 |
- // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
- // SPDX-License-Identifier: Apache-2.0
- package model // import "miniflux.app/v2/internal/model"
- import (
- "encoding/hex"
- "time"
- "github.com/go-webauthn/webauthn/webauthn"
- )
- type WebAuthnCredential struct {
- Credential webauthn.Credential
- Name string
- AddedOn *time.Time
- LastSeenOn *time.Time
- Handle []byte
- }
- func (s WebAuthnCredential) HandleEncoded() string {
- return hex.EncodeToString(s.Handle)
- }
|