MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / createSsoSession

Function createSsoSession

apps/web/services/sso/index.ts:10–22  ·  view source on GitHub ↗
(
  userId: string,
  encryptedToken: string
)

Source from the content-addressed store, hash-verified

8};
9
10export const createSsoSession = async (
11 userId: string,
12 encryptedToken: string
13) => {
14 const { id: state } = await prisma.session.create({
15 data: {
16 expires: new Date(Date.now() + 5 * 60 * 60 * 60),
17 sessionToken: encryptedToken,
18 userId,
19 },
20 });
21 return state;
22};

Callers 1

CreateRouterFunction · 0.85

Calls 1

createMethod · 0.45

Tested by

no test coverage detected