MCPcopy Index your code
hub / github.com/supabase/auth / getSession

Function getSession

internal/api/context.go:110–119  ·  view source on GitHub ↗

getSession reads the session from the context.

(ctx context.Context)

Source from the content-addressed store, hash-verified

108
109// getSession reads the session from the context.
110func getSession(ctx context.Context) *models.Session {
111 if ctx == nil {
112 return nil
113 }
114 obj := ctx.Value(sessionKey)
115 if obj == nil {
116 return nil
117 }
118 return obj.(*models.Session)
119}
120
121// withSignature adds the provided request ID to the context.
122func withSignature(ctx context.Context, id string) context.Context {

Callers 14

PasskeyDeleteMethod · 0.85
LogoutMethod · 0.85
enrollPhoneFactorMethod · 0.85
enrollWebAuthnFactorMethod · 0.85
enrollTOTPFactorMethod · 0.85
EnrollFactorMethod · 0.85

Calls 1

ValueMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…