package auth
import "time"
type Session struct {
Token string
UserId int64
Address string
Device string
CreatedAt time.Time
ExpiresAt time.Time
IsLong bool
}
func (s *Session) IsValid() bool {
return time.Now().UTC().Before(s.ExpiresAt)