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

Function getUser

packages/adapter-sequelize/src/index.ts:99–105  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

97 return await User.create(user)
98 },
99 async getUser(id) {
100 await sync()
101
102 const userInstance = await User.findByPk(id)
103
104 return userInstance?.get({ plain: true }) ?? null
105 },
106 async getUserByEmail(email) {
107 await sync()
108

Callers 1

index.test.tsFile · 0.50

Calls 1

syncFunction · 0.85

Tested by

no test coverage detected