forked from mtusi2026/mtusi2026lab6
feat: add bounded observability and verified SLO incident alerts
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user