MCPcopy Create free account
hub / github.com/bytebase/bytebase / GetAuthSecret

Method GetAuthSecret

backend/store/server_config.go:29–35  ·  view source on GitHub ↗

GetAuthSecret returns the global auth secret used for JWT signing.

(ctx context.Context)

Source from the content-addressed store, hash-verified

27
28// GetAuthSecret returns the global auth secret used for JWT signing.
29func (s *Store) GetAuthSecret(ctx context.Context) (string, error) {
30 config, err := s.GetServerConfig(ctx)
31 if err != nil {
32 return "", err
33 }
34 return config.AuthSecret, nil
35}

Callers 3

obfuscateInstanceMethod · 0.95
deobfuscateInstancesMethod · 0.95
NewServerFunction · 0.45

Calls 1

GetServerConfigMethod · 0.95

Tested by

no test coverage detected