hey guys im trying to save users to my database after authentication using the updated tutorial
NEXTAUTH
import NextAuth from 'next-auth';
import { MoralisNextAuthProvider } from '@moralisweb3/next';
export default NextAuth({
providers: [
MoralisNextAuthProvider(),
],
callbacks: {
async jwt({ token, user }) {
if (user) {
token.user = user;
}
return token;
},
async session({ session, token }) {
session.user = token.user;
return session;
},
},
});
moralis
import { MoralisNextApi } from '@moralisweb3/next';
export default MoralisNextApi({
apiKey: process.env.MORALIS_API_KEY,
authentication: {
domain: 'google.com',
uri: process.env.NEXTAUTH_URL,
timeout: 120,
},
});
in the previous version I was able to do so in this new version I cant seem to figure out where I should do the process