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

Method SetPhone

internal/models/user.go:324–327  ·  view source on GitHub ↗

SetPhone sets the user's phone

(tx *storage.Connection, phone string)

Source from the content-addressed store, hash-verified

322
323// SetPhone sets the user's phone
324func (u *User) SetPhone(tx *storage.Connection, phone string) error {
325 u.Phone = storage.NullString(phone)
326 return tx.UpdateOnly(u, "phone")
327}
328
329func (u *User) SetPassword(ctx context.Context, password string, encrypt bool, encryptionKeyID, encryptionKey string) error {
330 if password == "" {

Callers 3

TestUserUpdateEmailMethod · 0.95
DeleteIdentityMethod · 0.80
adminUserUpdateMethod · 0.80

Calls 2

NullStringTypeAlias · 0.92
UpdateOnlyMethod · 0.80

Tested by 1

TestUserUpdateEmailMethod · 0.76