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

Function WithSession

internal/api/shared/context.go:53–55  ·  view source on GitHub ↗

WithSession adds the session to the context - shared implementation

(ctx context.Context, s *models.Session)

Source from the content-addressed store, hash-verified

51
52// WithSession adds the session to the context - shared implementation
53func WithSession(ctx context.Context, s *models.Session) context.Context {
54 return context.WithValue(ctx, SessionKey, s)
55}
56
57// WithOAuthServerClient adds an OAuth server client to the context
58func WithOAuthServerClient(ctx context.Context, client *models.OAuthServerClient) context.Context {

Callers 3

TestUserInfoMethod · 0.92

Calls

no outgoing calls

Tested by 2

TestUserInfoMethod · 0.74