MCPcopy Create free account
hub / github.com/supabase/auth / withAdminUser

Function withAdminUser

internal/api/context.go:203–205  ·  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

201
202// withAdminUser adds the admin user to the context.
203func withAdminUser(ctx context.Context, u *models.User) context.Context {
204 return context.WithValue(ctx, adminUserKey, u)
205}
206
207// getAdminUser reads the admin user from the context.
208func getAdminUser(ctx context.Context) *models.User {

Callers 1

requireAdminMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected