MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / SetAuthKeyFromEnv

Function SetAuthKeyFromEnv

pkg/authkey/authkey.go:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func SetAuthKeyFromEnv() error {
29 authkey = os.Getenv(WaveAuthKeyEnv)
30 if authkey == "" {
31 return fmt.Errorf("no auth key found in environment variables")
32 }
33 os.Unsetenv(WaveAuthKeyEnv)
34 return nil
35}
36
37func GetAuthKey() string {
38 return authkey

Callers 1

grabAndRemoveEnvVarsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected