all repos

onasty @ 3f20faca4e44851dad63d0c2e85b49abc95a28b2

a one-time notes service

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
}