Back to home

nextjs-api/

simple-auth

Version: 0.0.1

Last Updated: Unknown


Nextjs Simple Auth

Install next-auth and update _app.tsx with the following.

import { Provider, useSession } from "next-auth/client"; export default function App(props) { const { Component, pageProps } = props; return ( <Provider session={pageProps.session}> <ProtectedApp pageProps={pageProps} Component={Component} /> </Provider> ); }

Install


Repository

https://github.com/okeeffed/pkg-nextjs-api-simple-auth

Sections