UNPKG

@hellocoop/nextjs

Version:

Next.js SDK for Hellō https://hello.dev

15 lines 662 B
import type { GetServerSidePropsContext, GetServerSidePropsResult, NextApiHandler, NextApiRequest } from 'next'; import { Auth } from '@hellocoop/definitions'; import { Config } from '@hellocoop/api'; declare module 'next' { interface NextApiRequest { auth?: Auth; } } export declare const getServerSideProps: (context: GetServerSidePropsContext) => Promise<GetServerSidePropsResult<{ auth: Auth; }>>; export declare const getAuth: (req: NextApiRequest) => Promise<Auth>; export declare const pageAuth: (config: Config) => NextApiHandler; export declare const pagesAuth: (config: Config) => NextApiHandler; //# sourceMappingURL=pages.d.ts.map