Michal Kučera
Michal Kučera
KKinde
Created by Michal Kučera on 10/18/2024 in #💻┃support
Can I include just one button instead of Sign in / Sign up?
Heres what getKindeClient does" const kindeClient: KindeClient = await createKindeClient({ client_id: import.meta.env.VITE_KINDE_CLIENT_ID, domain: import.meta.env.VITE_KINDE_DOMAIN, redirect_uri: import.meta.env.VITE_KINDE_REDIRECT_URI, on_error_callback: () => { useUserStore.setState({ user: null, isFetching: false, token: null, loginState: null, }); }, on_redirect_callback: async (user: KindeUser) => { const token = await kindeClient.getToken(); useUserStore.setState({ user: user ? mapKindeUserToUser(user) : null, isFetching: false, token, loginState: { loggedin: true, }, }); }, }); const user = kindeClient.getUser(); const token = await kindeClient.getToken(); useUserStore.setState({ user: user ? mapKindeUserToUser(user) : null, isFetching: false, token, loginState: { loggedin: !!user, }, }); export const getKindeClient = (): KindeClient => kindeClient;
4 replies
KKinde
Created by Michal Kučera on 10/18/2024 in #💻┃support
Can I include just one button instead of Sign in / Sign up?
Also, the custom sign in via authUrlParams does not work <Button primary className="w-full" onClick={() => { getKindeClient().login({ authUrlParams: { connection_id: "conn_01924c8c55a768835bde1727574b08ae", }, }); }}> Login with google </Button> Heres what I have and instead of bringing me to Google, the regular sign in page shows up
4 replies
KKinde
Created by Michal Kučera on 10/18/2024 in #💻┃support
Can I include just one button instead of Sign in / Sign up?
How would you recommend to approach this?
4 replies
KKinde
Created by Michal Kučera on 10/2/2024 in #💻┃support
I want to recreate my business. Is it possible to delete the old one?
Understood, thanks @Oli - Kinde
6 replies