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

Function WithUser

internal/api/shared/context.go:36–38  ·  view source on GitHub ↗

WithUser adds the user to the context - shared implementation

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

Source from the content-addressed store, hash-verified

34
35// WithUser adds the user to the context - shared implementation
36func WithUser(ctx context.Context, u *models.User) context.Context {
37 return context.WithValue(ctx, UserKey, u)
38}
39
40// GetSession reads the session from the context - shared implementation
41func GetSession(ctx context.Context) *models.Session {

Callers 10

withUserFunction · 0.92
TestUserInfoMethod · 0.92
TestUserInfoNoSessionMethod · 0.92
newRequestMethod · 0.92

Calls

no outgoing calls