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

Function withFactor

internal/api/context.go:74–76  ·  view source on GitHub ↗

with Factor adds the factor id to the context.

(ctx context.Context, f *models.Factor)

Source from the content-addressed store, hash-verified

72
73// with Factor adds the factor id to the context.
74func withFactor(ctx context.Context, f *models.Factor) context.Context {
75 return context.WithValue(ctx, factorKey, f)
76}
77
78// getUser reads the user from the context.
79func getUser(ctx context.Context) *models.User {

Callers 1

loadFactorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…