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

Function withSession

internal/api/context.go:105–107  ·  view source on GitHub ↗

withSession adds the session to the context.

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

Source from the content-addressed store, hash-verified

103
104// withSession adds the session to the context.
105func withSession(ctx context.Context, s *models.Session) context.Context {
106 return context.WithValue(ctx, sessionKey, s)
107}
108
109// getSession reads the session from the context.
110func getSession(ctx context.Context) *models.Session {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected