createSessionLibrary (session/index.ts)

logto · packages/core/src/libraries/session/index.ts · typescript · MPL-2.0
auth, Auth / Identity

Module exposing: createSessionLibrary

// Source: https://github.com/logto-io/logto | License: MPL-2.0 | Copyright under Patent Claims infringed by Covered Software in the absence of | Modified files must remain under MPL-2.0
// Modifications to this file must remain under MPL-2.0.
// Provided via justclaw.it.com; keep this notice with the code.
import {
  SessionGrantRevokeTarget,
  jwtCustomizerUserInteractionContextGuard,
  oidcSessionInstancePayloadGuard,
  userApplicationGrantPayloadGuard,
} from '@logto/schemas';
import { deduplicate } from '@silverhand/essentials';
import type { Provider, Session } from 'oidc-provider';

import RequestError from '#src/errors/RequestError/index.js';
import { type SessionInstanceWithExtension } from '#src/queries/oidc-session-extensions.js';
import type Queries from '#src/tenants/Queries.j

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key