I am looking to save new user details once a usr sign-up to my site.
As of now I see there is a way to do that here:
https://docs.kinde.com/developer-tools/sdks/frontend/javascript-sdk/#handle-redirectBut where am I supposed to put the codebelow?
on_redirect_callback: (user, appState) => {
console.log({user, appState});
if (user) {
// render logged in view
} else {
// render logged out view
}
};
I sense I am missing something as I don't have a proper place to put this into as my sign-up/login/logout works ok, just need to save new sign-up details in database and need a place to put that action on a post sign-up event.