Skip to content

Commit eafe2aa

Browse files
committed
fix
1 parent 59b7171 commit eafe2aa

File tree

1 file changed

+1
-1
lines changed
  • components/public-api-server/pkg/server

1 file changed

+1
-1
lines changed

components/public-api-server/pkg/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func Start(logger *logrus.Entry, version string, cfg *config.Configuration) erro
126126
log.Info("No Personal Access Token signign key specified, PersonalAccessToken service will be disabled.")
127127
}
128128

129-
_, err = auth.NewJWTFromAuthPKI(cfg.Auth.PKI, 7*24*time.Hour, "TODO")
129+
_, err = auth.NewJWTFromAuthPKI(cfg.Auth.PKI, time.Duration(cfg.Auth.Session.LifetimeSeconds*int64(time.Second)), cfg.Auth.Session.Issuer)
130130
if err != nil {
131131
return fmt.Errorf("failed to setup JWT signer/verifier: %w", err)
132132
}

0 commit comments

Comments
 (0)