forked from mtusi2026/mtusi2026lab5
14 lines
378 B
Go
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
|
|
}
|