MCPcopy Create free account
hub / github.com/CodeWithHarry/Sigma-Web-Dev-Course / session

Function session

Video 131/app/api/auth/[...nextauth]/route.js:55–59  ·  view source on GitHub ↗
({ session, user, token })

Source from the content-addressed store, hash-verified

53 },
54
55 async session({ session, user, token }) {
56 const dbUser = await User.findOne({email: session.user.email})
57 session.user.name = dbUser.username
58 return session
59 },
60 }
61 })
62

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected