Fix duplicated ctx key

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-11 17:37:14 +01:00
parent 08eb17d9fd
commit 8035085331

View File

@@ -51,11 +51,13 @@ type (
usrmgrSvc *usrmgr.Service
authCfg AuthConfig
}
ctxKey struct{}
)
var (
sessionContextKey = struct{}{}
userContextKey = struct{}{}
sessionContextKey ctxKey = struct{}{}
userContextKey ctxKey = struct{}{}
)
func SessionFromContext(ctx context.Context) *coredata.Session {