onasty/internal/models/session.go(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package models import ( "errors" "time" "github.com/gofrs/uuid/v5" ) var ErrSessionNotFound = errors.New("user: session not found") type Session struct { ID uuid.UUID UserID uuid.UUID RefreshToken string ExpiresAt time.Time }