2fas-server/internal/pass/pairing/entities.go

20 lines
246 B
Go
Raw Normal View History

package pairing
import (
"time"
)
type MobileDevice struct {
DeviceID string
FCMToken string
}
type PairingInfo struct {
Device MobileDevice
PairedAt time.Time
}
func (pi *PairingInfo) IsPaired() bool {
return !pi.PairedAt.IsZero()
}