MCPcopy Index your code
hub / github.com/sqlchat/sqlchat / session

Function session

src/pages/api/auth/[...nextauth].ts:46–51  ·  view source on GitHub ↗
({ session, user })

Source from the content-addressed store, hash-verified

44 },
45 callbacks: {
46 async session({ session, user }) {
47 session.user.id = user.id;
48 session.user.subscription = await getSubscriptionByEmail(user.email);
49 session.user.stripeId = user.stripeId;
50 return session;
51 },
52 },
53 theme: {
54 brandColor: "#4F46E5",

Callers

nothing calls this directly

Calls 1

getSubscriptionByEmailFunction · 0.90

Tested by

no test coverage detected