all repos

onasty @ 5290b5fe6a6bba7e2328582aae3c4a359ec60e01

a one-time notes service

onasty/internal/models/session.go (view raw)

Smirnov Oleksandr Smirnov Oleksandr
ss2316544@gmail.com
feat: implement auth (#4)..., 1 year ago
1
package models
2
3
import (
4
	"errors"
5
	"time"
6
7
	"github.com/gofrs/uuid/v5"
8
)
9
10
var ErrSessionNotFound = errors.New("user: session not found")
11
12
type Session struct {
13
	ID           uuid.UUID
14
	UserID       uuid.UUID
15
	RefreshToken string
16
	ExpiresAt    time.Time
17
}