MCPcopy
hub / github.com/nextauthjs/next-auth / getUserByEmail

Function getUserByEmail

packages/adapter-sequelize/src/index.ts:106–114  ·  view source on GitHub ↗
(email)

Source from the content-addressed store, hash-verified

104 return userInstance?.get({ plain: true }) ?? null
105 },
106 async getUserByEmail(email) {
107 await sync()
108
109 const userInstance = await User.findOne({
110 where: { email },
111 })
112
113 return userInstance?.get({ plain: true }) ?? null
114 },
115 async getUserByAccount({ provider, providerAccountId }) {
116 await sync()
117

Callers

nothing calls this directly

Calls 1

syncFunction · 0.85

Tested by

no test coverage detected