@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user