I want to get the information of the user who successfully registered
I could not see how to do it in the documentation.
7 Replies
because I want to save the registered user in my own database.
Hey @bar2 i've done this many times. There are a lot of ways to achieve this. What sdk are you using ?
I'm using the @kinde-oss/kinde-auth-nextjs SDK for authentication and @prisma/client for database operations.
So you can do two things :
- Use and retrieve the user object from there that you will use to create the user in your db.
- Use a hook, see here : https://docs.kinde.com/integrate/webhooks/webhooks-nextjs/
Kinde docs
Set up webhooks using Next.js
Our developer tools provide everything you need to get started with Kinde.
Here's one of my implementation :
ctx is passed from trpc and it contains the user object I got from doing :
I understand thank you
No problem