Defines TypeScript interfaces and types for OpenID authentication flows, used by auth modules.
// Source: https://github.com/danny-avila/librechat | License: MIT | Copyright 2026 LibreChat
// Provided via justclaw.it.com; keep this notice with the code.
import type { OIDCTokens } from '@librechat/data-schemas';
import type {
AuthIdentityContext,
AuthIdentitySource,
AuthIdentityTuple,
OpenIDSessionIdentitySource,
RefreshTokenBridgeIdentity,
} from '~/utils/identity';
export type TokenPreference = 'access_token' | 'id_token';
export type AsyncVoidCallback = (error?: Error | null) => void;
export type LeaseAssertion = () => Promise<object | null | boolean>;
export type LogArgument = string | number | boolean | Error | object | null | undefined;
export interface OpenIDPublicationGeneration {
key: string;
ownerId: string;
createdAt?: number;
}
export interface OpenIDCl
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key