cal.pub0.org/lib/utils/getCalcomUserId.ts

4 lines
151 B
TypeScript

import { NextApiResponse } from "next";
export const getCalcomUserId = (res: NextApiResponse): number => res.getHeader("x-calcom-user-id") as number;