use correct config struct for jwt token (#6761)

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2023-07-14 13:22:46 +02:00
committed by GitHub
parent e1fb4c315b
commit 6bb265fcf0

View File

@@ -56,7 +56,7 @@ func Server(cfg *config.Config) *cli.Command {
grpc.Name(cfg.Service.Name),
grpc.Context(ctx),
grpc.Metrics(mtrcs),
grpc.JWTSecret(cfg.Commons.TokenManager.JWTSecret),
grpc.JWTSecret(cfg.TokenManager.JWTSecret),
)
defer teardown()
if err != nil {