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=