Post signup event trigger

I need to take a custom post signup action. Before moving to Kinde, we had a custom email/password based signup/authentication process. A new user is suppose to go through a survey before they can opt to signup to our platform. When the user finished the survey, its is saved in a database table and the survey_id was passed to the signup as contextual information (URL param). Upon successful signup, we check the existence of the survey_id and then associate the survey with the user just signed up. We are using Kinde email/password authentication (with Kinde provided UI screens). How can we achieve the same here (passing the survey_id) through Kinde signup process and trigger a custom post process on our side? We are using next.js 14 and Kine default signup/login screens.
3 Replies
onderay
onderay11mo ago
Awesome to hear that you are using Kinde now @fortune-hunter . 1. You could use your own screens at the start of the flow to achieve something similar to your existing setup. https://kinde.com/docs/authentication-and-access/custom-authentication-pages/#custom-sign-up-and-sign-in-pages 2. You can store the survey_id in the user's session or local storage on the client side after they complete the survey and before they are redirected to the Kinde signup page. And In the next 24hrs we will be making live new functionality call 'Properties' that will allow you to store custom metadata against the user. So once they in your DB, you could add the data to the user's profile via the API. 3. Probbaly the last piece of the puzzle that you will need is Webhooks functionality. Which are very close to releasing in mid March. https://updates.kinde.com/board/webhooks Let me know if I have correctly understood your use case
Webhooks
Webhooks
Kinde Docs
Custom sign-up and sign-in pages - Authentication and access - Help...
Our developer tools provide everything you need to get started with Kinde.
kite-runner
kite-runnerOP11mo ago
Thanks for the response @Andre @ Kinde This is helpful. I was thinking of using local storage in the interim and your response confirmed that. Good to know the upcoming features.
onderay
onderay11mo ago
Awesome @fortune-hunter if you subscribe to the roadmap cards, you will know when the features are released.
Want results from more Discord servers?
Add your server