Linking to my sign up
Hi,
I want to link to my sign up account.mydomain.com from some landing pages that are generated by drag and drop style tools. When i link to account.mydomain.com i just get a strange landing page. How would i link to sign up using a url only?
Thanks
5 Replies
Hey @aaronweb3 what Kinde SDK are you using?
Hey, i'm working with the react SDK for my main application
Thanks for letting me know @aaronweb3.
Not 100% how much control you have with your landing page tool.
But you can directly link to the sign-up page using the Kinde React SDK. You can use the register function from the useKindeAuth hook to redirect users to the Kinde sign-up page.
Here's an example of how you can do this:
import {useKindeAuth} from '@kinde-oss/kinde-auth-react';
const { register } = useKindeAuth();
<button onClick={register} type="button">Sign up</button>
In this example, clicking the "Sign up" button will redirect users to the Kinde sign-up page.
Please note that you need to replace the placeholders in the Kinde SDK initialization with your actual Kinde domain and client ID. Also, make sure to set the correct callback URLs in your Kinde settings.
If you're using a custom domain, you should replace your_kinde_domain.kinde.com with your custom domain like account.mydomain.com.
Let me know if you need more help with this!
Hey, no worries, I got around this by adding in a couple of components that resolve at /login and /register in my react app and then pointed the landing pages at them. Works just fine. Thanks for the help
Awesome to hear @aaronweb3