MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / parseUser

Function parseUser

packages/auth-server/src/server/session.ts:26–33  ·  view source on GitHub ↗
(session: any)

Source from the content-addressed store, hash-verified

24}
25
26function parseUser(session: any) {
27 return {
28 user: {
29 ...session.data,
30 },
31 expires: new Date(session.exp * 1000).toISOString(),
32 };
33}
34
35// SSR only
36export async function getServerSession(req: any, _?: any) {

Callers 1

getServerSessionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected