@tunaiku.npm/embedded-session-management
Version:
Session management
19 lines (18 loc) • 632 B
TypeScript
import { FlowConfigurator } from "./flow-configurator";
interface FlowConfig {
exp: number;
idleTimeout: number;
additionalScopes?: string[];
replacementScopes?: string[];
}
interface FlowConfigs {
[key: string]: FlowConfig;
}
declare class InMemoryFlowConfigurator implements FlowConfigurator {
flowConfig: FlowConfigs;
constructor(flowConfig?: FlowConfigs);
getExpiryOf(flow: string, defaultExp?: number): Promise<number>;
getIdleTimeoutOf(flow: string, defaultIdleTimeout?: number): Promise<number>;
getScopesOf(flow: string): Promise<string[]>;
}
export default InMemoryFlowConfigurator;