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

Function sync

packages/adapter-sequelize/src/index.ts:74–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73 let _synced = false
74 const sync = async () => {
75 if (process.env.NODE_ENV !== "production" && synchronize && !_synced) {
76 const syncOptions =
77 typeof synchronize === "object" ? synchronize : undefined
78
79 await Promise.all([
80 User.sync(syncOptions),
81 Account.sync(syncOptions),
82 Session.sync(syncOptions),
83 VerificationToken.sync(syncOptions),
84 ])
85
86 _synced = true
87 }
88 }
89
90 Account.belongsTo(User, { onDelete: "cascade" })
91 Session.belongsTo(User, { onDelete: "cascade" })

Callers 14

createUserFunction · 0.85
getUserFunction · 0.85
getUserByEmailFunction · 0.85
getUserByAccountFunction · 0.85
updateUserFunction · 0.85
deleteUserFunction · 0.85
linkAccountFunction · 0.85
unlinkAccountFunction · 0.85
createSessionFunction · 0.85
getSessionAndUserFunction · 0.85
updateSessionFunction · 0.85
deleteSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected