FIX: Handle NULL transports in credentials using pq.StringArray

This commit is contained in:
Leon Bösche
2026-01-11 22:46:49 +01:00
parent 09d16abcd5
commit 6a4cd8c672

View File

@@ -7,6 +7,7 @@ import (
"time" "time"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/lib/pq"
) )
type DB struct { type DB struct {
@@ -35,7 +36,7 @@ type Credential struct {
SignCount int64 SignCount int64
CreatedAt time.Time CreatedAt time.Time
LastUsedAt *time.Time LastUsedAt *time.Time
Transports []string Transports pq.StringArray
} }
type AuthChallenge struct { type AuthChallenge struct {