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

Function getNetlifyID

api/context.go:148–155  ·  view source on GitHub ↗

getNetlifyID reads the request ID from the context.

(ctx context.Context)

Source from the content-addressed store, hash-verified

146
147// getNetlifyID reads the request ID from the context.
148func getNetlifyID(ctx context.Context) string {
149 obj := ctx.Value(netlifyIDKey)
150 if obj == nil {
151 return ""
152 }
153
154 return obj.(string)
155}
156
157func withInviteToken(ctx context.Context, token string) context.Context {
158 return context.WithValue(ctx, inviteTokenKey, token)

Callers 1

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…