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

Method createUserWithEmail

internal/models/user_test.go:192–205  ·  view source on GitHub ↗
(email string)

Source from the content-addressed store, hash-verified

190}
191
192func (ts *UserTestSuite) createUserWithEmail(email string) *User {
193 user, err := NewUser("", email, "secret", "test", nil)
194 require.NoError(ts.T(), err)
195 require.NoError(ts.T(), ts.db.Create(user))
196
197 identity, err := NewIdentity(user, "email", map[string]interface{}{
198 "sub": user.ID.String(),
199 "email": email,
200 })
201 require.NoError(ts.T(), err)
202 require.NoError(ts.T(), ts.db.Create(identity))
203
204 return user
205}
206
207func (ts *UserTestSuite) TestRemoveUnconfirmedIdentities() {
208 user, err := NewUser("+29382983298", "someone@example.com", "abcdefgh", "authenticated", nil)

Callers 2

TestIsDuplicatedEmailMethod · 0.95
createUserMethod · 0.95

Calls 3

NewUserFunction · 0.85
NewIdentityFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected