Skip to content

Commit b959cf4

Browse files
committed
refactor: remove legacy HYPEMAN_BEARER_TOKEN support
1 parent 440e938 commit b959cf4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pkg/cmd/config.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,8 @@ func resolveBaseURL(cmd *cli.Command) string {
6767
}
6868

6969
// resolveAPIKey returns the effective API key with precedence:
70-
// HYPEMAN_API_KEY env > config file > HYPEMAN_BEARER_TOKEN env (legacy).
70+
// HYPEMAN_API_KEY env > config file.
7171
func resolveAPIKey() string {
7272
cfg := loadCLIConfig()
73-
if cfg.APIKey != "" {
74-
return cfg.APIKey
75-
}
76-
if k := os.Getenv("HYPEMAN_BEARER_TOKEN"); k != "" {
77-
return k
78-
}
79-
return ""
73+
return cfg.APIKey
8074
}

0 commit comments

Comments
 (0)