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

Function getFactor

internal/api/context.go:96–102  ·  view source on GitHub ↗

getFactor reads the factor id from the context

(ctx context.Context)

Source from the content-addressed store, hash-verified

94
95// getFactor reads the factor id from the context
96func getFactor(ctx context.Context) *models.Factor {
97 obj := ctx.Value(factorKey)
98 if obj == nil {
99 return nil
100 }
101 return obj.(*models.Factor)
102}
103
104// withSession adds the session to the context.
105func withSession(ctx context.Context, s *models.Session) context.Context {

Callers 11

adminUserDeleteFactorMethod · 0.85
adminUserUpdateFactorMethod · 0.85
challengePhoneFactorMethod · 0.85
challengeTOTPFactorMethod · 0.85
ChallengeFactorMethod · 0.85
verifyTOTPFactorMethod · 0.85
verifyPhoneFactorMethod · 0.85
verifyWebAuthnFactorMethod · 0.85
VerifyFactorMethod · 0.85
UnenrollFactorMethod · 0.85

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected