mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 18:26:34 +02:00
11 lines
328 B
TypeScript
11 lines
328 B
TypeScript
import type { IncomingMessage, ServerResponse } from "http";
|
|
import { getIronSession } from "iron-session/edge";
|
|
|
|
import { sessionConfig } from "../session-config";
|
|
|
|
export const getSession = async (
|
|
req: Request | IncomingMessage,
|
|
res: Response | ServerResponse,
|
|
) => {
|
|
return getIronSession(req, res, sessionConfig);
|
|
};
|