refactor: domain auth types

This commit is contained in:
2026-05-26 22:41:29 +02:00
parent 65a7b0f50d
commit 5a054d250e
2 changed files with 17 additions and 9 deletions

View File

@@ -6,9 +6,17 @@ import (
"time"
)
type User = db.User
type Session = db.Session
type APIToken = db.ApiToken
type User struct {
db.User
}
type Session struct {
db.Session
}
type APIToken struct {
db.ApiToken
}
const SessionLifetime = 90 * 24 * time.Hour