feat(auth): refactor authentication handling by removing redundant checks and introducing dynamic auth method determination

This commit is contained in:
Avinash Sridhar 2025-04-30 13:00:11 -04:00 • committed by Toby Padilla
commit f843bd4243

View file

@ -17,7 +17,6 @@ type Config struct {
// GitHub OAuth settings
GithubClientID string `env:"GITHUB_CLIENT_ID" envDefault:""`
GithubClientSecret string `env:"GITHUB_CLIENT_SECRET" envDefault:""`
RequireAuth bool `env:"REQUIRE_AUTH" envDefault:"false"` // Whether to require authentication for publishing
}
// NewConfig creates a new configuration with default values