Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultAuthAPI = "https://api.workos.com" // Public AuthKit client IDs (not secrets). Safe to ship in a public CLI. StagingClientID = "client_01KC6DJVAFP219V90F6CCQNFYY" StagingBaseURL = "https://main.app.daco.services" // ProductionClientID is empty until the production WorkOS binding is checked in. ProductionClientID = "" ProductionBaseURL = "https://app.dacolabs.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Env string
// ClientID is the AuthKit client ID.
ClientID string
AuthAPI string
// BaseURL is set only when DACO_BASE_URL is present (explicit override).
BaseURL string
// DefaultBaseURL comes from DACO_ENV and is used when neither DACO_BASE_URL
// nor a saved session BaseURL is set.
DefaultBaseURL string
}
func (Config) RequireBaseURL ¶ added in v1.0.0
func (Config) RequireClientID ¶ added in v1.0.0
func (Config) ResolveBaseURL ¶ added in v1.0.0
ResolveBaseURL prefers an explicit DACO_BASE_URL, then a saved session URL, then env defaults.
Click to show internal directories.
Click to hide internal directories.