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

Function updateSession

packages/adapter-sequelize/src/index.ts:187–196  ·  view source on GitHub ↗
({ sessionToken, expires })

Source from the content-addressed store, hash-verified

185 }
186 },
187 async updateSession({ sessionToken, expires }) {
188 await sync()
189
190 await Session.update(
191 { expires, sessionToken },
192 { where: { sessionToken } }
193 )
194
195 return await Session.findOne({ where: { sessionToken } })
196 },
197 async deleteSession(sessionToken) {
198 await sync()
199

Callers

nothing calls this directly

Calls 1

syncFunction · 0.85

Tested by

no test coverage detected