feat(auth): refactor authentication handling by removing redundant checks and introducing dynamic auth method determination
This commit is contained in:
parent
6191066b2e
commit
f843bd4243
1 changed files with 12 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue