Files
mtusi2026lab2/internal/model/dto/session.go
T
Vladislav Agapov b90581f613
Application / verify (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
Implement lab 2 with PostgreSQL, Valkey admission and Helm deployment
2026-10-15 17:09:26 +03:00

14 lines
378 B
Go

package dto
import "time"
// SessionDTO is an issued session, exposing the raw token only at creation.
type SessionDTO struct {
// Token contains 256 random bits encoded for a Bearer header.
Token string
// ExpiresAt is an absolute UTC deadline which is not extended by reads.
ExpiresAt time.Time
// User is the authenticated account without credentials.
User UserDTO
}