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 usrmgrSvc *usrmgr.Service
authCfg AuthConfig authCfg AuthConfig
} }
ctxKey struct{}
) )
var ( var (
sessionContextKey = struct{}{} sessionContextKey ctxKey = struct{}{}
userContextKey = struct{}{} userContextKey ctxKey = struct{}{}
) )
func SessionFromContext(ctx context.Context) *coredata.Session { func SessionFromContext(ctx context.Context) *coredata.Session {