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

Function getUser

api/context.go:119–125  ·  view source on GitHub ↗

getUser reads the user id from the context.

(ctx context.Context)

Source from the content-addressed store, hash-verified

117
118// getUser reads the user id from the context.
119func getUser(ctx context.Context) *models.User {
120 obj := ctx.Value(userKey)
121 if obj == nil {
122 return nil
123 }
124 return obj.(*models.User)
125}
126
127// withSignature adds the provided request ID to the context.
128func withSignature(ctx context.Context, id string) context.Context {

Callers 3

adminUserGetMethod · 0.85
adminUserUpdateMethod · 0.85
adminUserDeleteMethod · 0.85

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…