Hi. I have looked for some posts but I didn’t get clear one for my goal, so I decided to post it myself.
I have next js project where I use auth0 and I use also postgresql as database. I want the user info to be sent to my database after login is done.
I want it to happen via route handler, where I get user info and send it by sql logic.
I found that it should happen inside handleAuth by callback where I call my api route but I didn’t find clear way how to do this.
Can someone help me or if there is better way.
Thanks a lot.