1.6.1 • Published 3 years ago
@atelo-co/formless v1.6.1
formless
(work with nextjs)
Add to App
const MyApp = ({ Component, pageProps }: AppProps) => {
return (
<SessionProvider>
<Component {...pageProps} />
</SessionProvider>
);
};
Use in every Page
const { session, dispatch } = useSession();
.env.local
TOKEN_SECRET=
TOKEN_IV=