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

Method SetEmail

internal/models/user.go:318–321  ·  view source on GitHub ↗

SetEmail sets the user's email

(tx *storage.Connection, email string)

Source from the content-addressed store, hash-verified

316
317// SetEmail sets the user's email
318func (u *User) SetEmail(tx *storage.Connection, email string) error {
319 u.Email = storage.NullString(email)
320 return tx.UpdateOnly(u, "email")
321}
322
323// SetPhone sets the user's phone
324func (u *User) SetPhone(tx *storage.Connection, phone string) error {

Callers 3

TestUserUpdateEmailMethod · 0.95
adminUserUpdateMethod · 0.80

Calls 2

NullStringTypeAlias · 0.92
UpdateOnlyMethod · 0.80

Tested by 1

TestUserUpdateEmailMethod · 0.76