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

Method TestFindUserByConfirmationToken

internal/models/user_test.go:88–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88func (ts *UserTestSuite) TestFindUserByConfirmationToken() {
89 u := ts.createUser()
90 tokenHash := "test_confirmation_token"
91 require.NoError(ts.T(), CreateOneTimeToken(ts.db, u.ID, "relates_to not used", tokenHash, ConfirmationToken))
92
93 n, err := FindUserByConfirmationToken(ts.db, tokenHash)
94 require.NoError(ts.T(), err)
95 require.Equal(ts.T(), u.ID, n.ID)
96}
97
98func (ts *UserTestSuite) TestFindUserByEmailAndAudience() {
99 u := ts.createUser()

Callers

nothing calls this directly

Calls 4

createUserMethod · 0.95
CreateOneTimeTokenFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected