This commit is contained in:
Stavros
2025-03-15 17:06:06 +02:00
parent 52f189563b
commit 07b57fb0ca
14 changed files with 590 additions and 273 deletions

15
internal/types/config.go Normal file
View File

@@ -0,0 +1,15 @@
package types
// API config is the configuration for the API
type APIConfig struct {
Port int
Address string
Secret string
AppURL string
CookieSecure bool
SessionExpiry int
DisableContinue bool
GenericName string
Title string
Domain string
}

View File

@@ -0,0 +1,13 @@
package types
// HealthCheckResponse is the response for the health check endpoint
type HealthCheckResponse struct {
Status int `json:"status" example:"200"`
Message string `json:"message" example:"Ok"`
}
// LogoutResponse is the response for the health check endpoint
type LogoutResponse struct {
Status int `json:"status" example:"200"`
Message string `json:"message" example:"Logged out"`
}

View File

@@ -67,19 +67,6 @@ type UserContext struct {
TotpPending bool
}
// APIConfig is the configuration for the API
type APIConfig struct {
Port int
Address string
Secret string
AppURL string
CookieSecure bool
SessionExpiry int
DisableContinue bool
GenericName string
Title string
}
// OAuthConfig is the configuration for the providers
type OAuthConfig struct {
GithubClientId string