api/internal/shared/auth.go

17 lines
224 B
Go
Raw Normal View History

2025-07-07 17:45:58 +03:00
package shared
2025-09-14 19:33:23 +03:00
import (
"net/http"
"time"
)
2025-07-07 17:45:58 +03:00
type AuthData struct {
AccessToken string
RefreshCookie *http.Cookie
2025-07-07 17:45:58 +03:00
}
2025-09-14 19:33:23 +03:00
type CurrentSession struct {
Uuid string `json:"uuid"`
Expires time.Time `json:"expires"`
}