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

Function deleteUser

packages/adapter-sequelize/src/index.ts:139–147  ·  view source on GitHub ↗
(userId)

Source from the content-addressed store, hash-verified

137 return userInstance!
138 },
139 async deleteUser(userId) {
140 await sync()
141
142 const userInstance = await User.findByPk(userId)
143
144 await User.destroy({ where: { id: userId } })
145
146 return userInstance
147 },
148 async linkAccount(account) {
149 await sync()
150

Callers

nothing calls this directly

Calls 1

syncFunction · 0.85

Tested by

no test coverage detected