MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / session

Function session

packages/web/src/auth.ts:419–430  ·  view source on GitHub ↗
({ session, token })

Source from the content-addressed store, hash-verified

417 return token;
418 },
419 async session({ session, token }) {
420 // @WARNING: Anything stored in the session will be sent over
421 // to the client.
422 session.user = {
423 ...session.user,
424 // Propagate the userId to the session.
425 id: token.userId,
426 }
427 session.sessionVersion = token.sessionVersion;
428
429 return session;
430 },
431 },
432 providers: (await getProviders()).map((provider) => provider.__provider),
433 pages: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected