refactor: consolidate cookie config, correct documentation

This commit is contained in:
Trong Huu Nguyen
2024-11-05 21:24:25 +01:00
parent bfb4929dc7
commit d2e01b2ead
7 changed files with 25 additions and 26 deletions

View File

@@ -42,8 +42,8 @@ func run() error {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
if cfg.CookiePrefix != cookie.DefaultPrefix {
cookie.ConfigureCookieNamesWithPrefix(cfg.CookiePrefix)
if cfg.Cookie.Prefix != cookie.DefaultPrefix {
cookie.ConfigureCookieNamesWithPrefix(cfg.Cookie.Prefix)
}
if cfg.SSO.Enabled {