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

Function NewPhoneFactor

internal/models/factor.go:260–264  ·  view source on GitHub ↗
(user *User, phone, friendlyName string)

Source from the content-addressed store, hash-verified

258}
259
260func NewPhoneFactor(user *User, phone, friendlyName string) *Factor {
261 factor := NewFactor(user, friendlyName, Phone, FactorStateUnverified)
262 factor.Phone = storage.NullString(phone)
263 return factor
264}
265
266func NewWebAuthnFactor(user *User, friendlyName string) *Factor {
267 factor := NewFactor(user, friendlyName, WebAuthn, FactorStateUnverified)

Callers 5

TestMFAVerifyFactorMethod · 0.92
enrollPhoneFactorMethod · 0.92

Calls 2

NullStringTypeAlias · 0.92
NewFactorFunction · 0.85

Tested by 4

TestMFAVerifyFactorMethod · 0.74