2fas-server/internal/pass/pairing/entities.go
Tobiasz Heller dbd4245b6f
initial version of pairing and proxy (#23)
* initial version of pairing and proxy

* apply review comments and rework proxy

* delete expires pairs
2024-01-12 19:19:52 +01:00

20 lines
246 B
Go

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()
}