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

4 lines
151 B
TypeScript
Raw Normal View History

2022-04-08 16:08:26 +00:00
import { NextApiResponse } from "next";
export const getCalcomUserId = (res: NextApiResponse): number => res.getHeader("x-calcom-user-id") as number;