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

Method CreatePhoneChallenge

internal/models/factor.go:375–381  ·  view source on GitHub ↗
(ipAddress string, otpCode string, encrypt bool, encryptionKeyID, encryptionKey string)

Source from the content-addressed store, hash-verified

373}
374
375func (f *Factor) CreatePhoneChallenge(ipAddress string, otpCode string, encrypt bool, encryptionKeyID, encryptionKey string) (*Challenge, error) {
376 phoneChallenge := f.CreateChallenge(ipAddress)
377 if err := phoneChallenge.SetOtpCode(otpCode, encrypt, encryptionKeyID, encryptionKey); err != nil {
378 return nil, err
379 }
380 return phoneChallenge, nil
381}
382
383// UpdateFriendlyName changes the friendly name
384func (f *Factor) UpdateFriendlyName(tx *storage.Connection, friendlyName string) error {

Callers 2

TestMFAVerifyFactorMethod · 0.95
challengePhoneFactorMethod · 0.80

Calls 2

CreateChallengeMethod · 0.95
SetOtpCodeMethod · 0.80

Tested by 1

TestMFAVerifyFactorMethod · 0.76