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

Function withUser

internal/api/context.go:64–66  ·  view source on GitHub ↗

withUser adds the user to the context.

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

Source from the content-addressed store, hash-verified

62
63// withUser adds the user to the context.
64func withUser(ctx context.Context, u *models.User) context.Context {
65 return shared.WithUser(ctx, u)
66}
67
68// withTargetUser adds the target user for linking to the context.
69func withTargetUser(ctx context.Context, u *models.User) context.Context {

Callers 2

loadUserMethod · 0.85

Calls 1

WithUserFunction · 0.92

Tested by

no test coverage detected