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

Function withTargetUser

internal/api/context.go:69–71  ·  view source on GitHub ↗

withTargetUser adds the target user for linking to the context.

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

Source from the content-addressed store, hash-verified

67
68// withTargetUser adds the target user for linking to the context.
69func withTargetUser(ctx context.Context, u *models.User) context.Context {
70 return context.WithValue(ctx, targetUserKey, u)
71}
72
73// with Factor adds the factor id to the context.
74func withFactor(ctx context.Context, f *models.Factor) context.Context {

Calls

no outgoing calls