@zeushq/nextjs-zidentity
Version:
Next.js SDK for signin in with Zeus Identity
14 lines • 828 B
TypeScript
/// <reference types="node" />
import { IncomingMessage, ServerResponse } from 'http';
import { Config } from '../config';
import { ClientFactory } from '../client';
import TransientStore from '../transient-store';
import { SessionCache } from '../session-cache';
export declare type AfterCallback = (req: any, res: any, session: any, state: Record<string, any>) => Promise<any> | any;
export declare type CallbackOptions = {
afterCallback?: AfterCallback;
redirectUri?: string;
};
export declare type HandleCallback = (req: IncomingMessage, res: ServerResponse, options?: CallbackOptions) => Promise<void>;
export default function callbackHandlerFactory(config: Config, getClient: ClientFactory, sessionCache: SessionCache, transientCookieHandler: TransientStore): HandleCallback;
//# sourceMappingURL=callback.d.ts.map