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

Function withAdminUser

api/context.go:214–216  ·  view source on GitHub ↗

withAdminUser adds the admin user to the context.

(ctx context.Context, u *models.User)

Source from the content-addressed store, hash-verified

212
213// withAdminUser adds the admin user to the context.
214func withAdminUser(ctx context.Context, u *models.User) context.Context {
215 return context.WithValue(ctx, adminUserKey, u)
216}
217
218// getAdminUser reads the admin user from the context.
219func getAdminUser(ctx context.Context) *models.User {

Callers 2

requireAdminMethod · 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…