Kinde sign-in screen register link means no new org
Hi there,
I've got a NextJS app using the SDK and also the Kinde API on other sections. Basically I want the user flow to be:
A manager-level user registers (using the <RegisterLink> component), creating a new organisation and then is able to add their team members to that organisation from within the app using the Kinde API.
I've got this working but have noticed a bug I'm not sure if there's a solution for.
My <RegisterLink> passes the create_new_org property so as long as it's clicked, it's fine.
However, if a new user clicks "Sign In" by accident, they're taken to a Kinde sign-in screen, which has the option "no account? create one". If they click this link, it registers them, without creating a new org, so they get added to the default org, which messes up the above user flow.
Is there any way to remove this "create one" link from the Kinde sign-in page? Or, any way to pass the create_new_org property to it? Or am I going to have to uproot the whole thing and use custom sign-in and register pages?
If the third option, is it possible to use the NextJS SDK components <LoginLink> and <RegisterLink> with custom sign-in pages? Otherwise could you point me to the best way to implement this in NextJS?
Thank you very much in advance!
I've got a NextJS app using the SDK and also the Kinde API on other sections. Basically I want the user flow to be:
A manager-level user registers (using the <RegisterLink> component), creating a new organisation and then is able to add their team members to that organisation from within the app using the Kinde API.
I've got this working but have noticed a bug I'm not sure if there's a solution for.
My <RegisterLink> passes the create_new_org property so as long as it's clicked, it's fine.
However, if a new user clicks "Sign In" by accident, they're taken to a Kinde sign-in screen, which has the option "no account? create one". If they click this link, it registers them, without creating a new org, so they get added to the default org, which messes up the above user flow.
Is there any way to remove this "create one" link from the Kinde sign-in page? Or, any way to pass the create_new_org property to it? Or am I going to have to uproot the whole thing and use custom sign-in and register pages?
If the third option, is it possible to use the NextJS SDK components <LoginLink> and <RegisterLink> with custom sign-in pages? Otherwise could you point me to the best way to implement this in NextJS?
Thank you very much in advance!



