GetAuthSecret returns the global auth secret used for JWT signing.
(ctx context.Context)
| 27 | |
| 28 | // GetAuthSecret returns the global auth secret used for JWT signing. |
| 29 | func (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 | } |
no test coverage detected