mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-07 22:02:57 +03:00
24 lines
768 B
Go
24 lines
768 B
Go
package dto
|
|
|
|
import (
|
|
"github.com/go-webauthn/webauthn/protocol"
|
|
datatype "github.com/stonith404/pocket-id/backend/internal/model/types"
|
|
)
|
|
|
|
type WebauthnCredentialDto struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
CredentialID string `json:"credentialID"`
|
|
AttestationType string `json:"attestationType"`
|
|
Transport []protocol.AuthenticatorTransport `json:"transport"`
|
|
|
|
BackupEligible bool `json:"backupEligible"`
|
|
BackupState bool `json:"backupState"`
|
|
|
|
CreatedAt datatype.DateTime `json:"createdAt"`
|
|
}
|
|
|
|
type WebauthnCredentialUpdateDto struct {
|
|
Name string `json:"name" binding:"required,min=1,max=30"`
|
|
}
|