update usage of ReadGprcServerConfig()

This commit is contained in:
Claudiu Dragalina-Paraipan 2024-09-03 15:59:09 +03:00
parent f5d383644d
commit 499a31df53

View File

@ -10,11 +10,7 @@ import (
)
func NewGrpcAuthenticator(cfg *setting.Cfg) (*authnlib.GrpcAuthenticator, error) {
authCfg, err := ReadGprcServerConfig(cfg)
if err != nil {
return nil, err
}
authCfg := ReadGprcServerConfig(cfg)
grpcAuthCfg := authnlib.GrpcAuthenticatorConfig{
KeyRetrieverConfig: authnlib.KeyRetrieverConfig{
SigningKeysURL: authCfg.SigningKeysURL,