UNPKG

authservice-nextjs

Version:

Next.js SDK for Auth Service - Server and client-side authentication with App Router support

33 lines 1.23 kB
import { GetServerSideProps } from 'next'; import { NextAuthServer } from './auth'; import { GetServerSidePropsWithAuth } from '../types'; export declare class NextAuthPages { private auth; constructor(auth: NextAuthServer); withAuth<P extends { [key: string]: any; } = { [key: string]: any; }>(getServerSideProps?: GetServerSidePropsWithAuth<P>): GetServerSideProps<P>; withPermission<P extends { [key: string]: any; } = { [key: string]: any; }>(permission: string, getServerSideProps?: GetServerSidePropsWithAuth<P>): GetServerSideProps<P>; withAnyPermission<P extends { [key: string]: any; } = { [key: string]: any; }>(permissions: string[], getServerSideProps?: GetServerSidePropsWithAuth<P>): GetServerSideProps<P>; withAllPermissions<P extends { [key: string]: any; } = { [key: string]: any; }>(permissions: string[], getServerSideProps?: GetServerSidePropsWithAuth<P>): GetServerSideProps<P>; checkAuth<P extends { [key: string]: any; } = { [key: string]: any; }>(getServerSideProps?: GetServerSidePropsWithAuth<P>): GetServerSideProps<P>; } //# sourceMappingURL=pages.d.ts.map