MCPcopy Create free account
hub / github.com/netlify/gotrue / withConfig

Function withConfig

api/context.go:73–75  ·  view source on GitHub ↗

withConfig adds the tenant configuration to the context.

(ctx context.Context, config *conf.Configuration)

Source from the content-addressed store, hash-verified

71
72// withConfig adds the tenant configuration to the context.
73func withConfig(ctx context.Context, config *conf.Configuration) context.Context {
74 return context.WithValue(ctx, configKey, config)
75}
76
77func getConfig(ctx context.Context) *conf.Configuration {
78 obj := ctx.Value(configKey)

Callers 1

WithInstanceConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…