Dave
Dave
KKinde
Created by Dave on 8/26/2024 in #💻┃support
How to use Is_create_org in NextJs.
Hi Quacksire, I'm a little confused re. "the user needs to be logged in to create an org". If they are already logged in, then their account has been created from registration. But there's a configuration flag for organisations in the UI:- "Add users to this organization if no organization is specified" "Always add users to the default organization if no organization is selected or created when they register" I'm assuming there is a parameter that can be passed when registering a user?
9 replies
KKinde
Created by Kenton on 8/27/2024 in #💻┃support
Kinde Management API - 400 Bad Request: malformed Host header
15 replies
KKinde
Created by Dave on 8/18/2024 in #💻┃support
Need advice on multi-tenant design
Thanks Oli for the info. The upcoming plans/subscriptions functionality is very important for me. If I relaxed the constraint to allow a separate Kinde Organisation for each company/app combo, would this work with the upcoming billing product?
I understand the core of the billing product uses features for creating plans. At what level are the plans created? Per organisation?
Having a Kinde business per company is also an option except I don't see a "create business" function in the API. It appears businesses can only be created in the UI, which would be a show stopper for this option. THx.
9 replies
KKinde
Created by Kenton on 8/27/2024 in #💻┃support
Kinde Management API - 400 Bad Request: malformed Host header
I'm following your conversations re. is_create_org. Would this be fixed with a token refresh?
Since moving the user to the new org is part of signup i.e they wouldn't have had to use the login page yet, I'm assuming a token refresh should hopefully be painless at signup??
15 replies
KKinde
Created by Dave on 8/26/2024 in #💻┃support
How to use Is_create_org in NextJs.
I really like your idea, Kenton. Have you tried it yet?
9 replies
KKinde
Created by Dave on 8/26/2024 in #💻┃support
How to use Is_create_org in NextJs.
So, <LoginLink> = log in user, <RegisterLink> = register new user, <CreateOrgLink> = create a new organisation, yes??
In my ideal world. for new user registration there'd be an "organisation name" besides first/last name properties for user sign up, that when OK is clicked a new user is registered and a new organisation created for which the user is the first member. To do this It appears RegisterLink and CreateOrgLink are not helpful. Furthermore, to implement this I'd need to choose to create my own custom register and login pages, which is unfortunate since I'm perfectly happy with the pre-packaged login page. Am I missing anything??? I'm using NextJs. App Router. When implementing my own Register page, I will be creating an organisation and then add a user to that organisation. I don't see much in the NextJs docs for doing this. To keep with the flavour of NextJS, I'd like to create a server action to create an organisation and signup a user. Are there any hooks for doing this or is Kinde Management API the only way? THanks, Dave
9 replies
KKinde
Created by Dave on 8/26/2024 in #💻┃support
How to use Is_create_org in NextJs.
Thank you Quacksire for the info but is CreateOrgLink the same as is_create_org? I'd like to understand how is_create_org supposed to be used. Thx.
9 replies
KKinde
Created by Dave on 8/18/2024 in #💻┃support
Need advice on multi-tenant design
Thank you for the info, Oli. I'd like to avoid having separate silos of users for the same company if possible. It's hard to guess how plans and subscriptions will work, but I was assuming I'd implement organisations and then, for example, when company B subscribes to a 5-user license for app1 from company A, I'd programmatically set an integer feature flag of 5 for app1 users for that organisation and then monitor how many users logged in. I was basically assigning the organisation concept to a physical company with it's users being their team of employees, consultants etc. Then for apps, I was thinking of feature flags for controlling access to functionality. Is this a logical way of doing it and does it make sense given the upcoming plans/subscriptions functionality?? Also, if a feature is enabled for an organisation, can I use roles and permission to control a user's access to that feature? Thx.
9 replies