K
Kinde9mo ago
Zuka

Create organization after login

Hi Kinde, I'm adding your great product to a website of mine, and I'm wondering if it is possible for already signed up users to add multiple organizations without going through the login/signup flow for each of them. I'm using the createOrg method of the react library, but I'm being redirected to the kinde login page. The user is already logged in, so I'm sure it is just something I haven't thought of. If it helps, I have enabled custom login and signup pages so that the users stay on my site. CC: @Mehanika
3 Replies
Oli - Kinde
Oli - Kinde9mo ago
Hi @Zuka, Glad to hear you are getting good use out of Kinde. Would you want the already sign-up user to be assigned to multiple existing organizations or create and assign them to new organizations? In both cases you could achieve via the Kinde Management API, using the following API calls: - Create Organization API call - Add Organization Users You would have to communicate with the Kinde Management API using a server-side language/framework (not React), so please let me know if this is not viable.
Zuka
Zuka9mo ago
We're letting our new users create their organization after signup so that they in reality can have multiple organizations. Building it into our API is no issue 👍 I just thought that it might be possible because of the createOrg method, but it appears that it is only possible when sending the user to the Kinde login/signup flow. We want to do it after signup, so having the user sign in again after specifying an organization name is a bit weird. But thank you for letting me know. API it is 💪 And again: Kinde is really taking the hard work out of authentication and signup. Amazing product
Oli - Kinde
Oli - Kinde9mo ago
Thanks for the feedback. I have noted this request for an out-of-the-box SDK native method to add a user to another organization. Sounds like the API path will solve your use-case. Please reach out if you have any other questions.
Want results from more Discord servers?
Add your server