Hi, how can I retrieve a list of users by ID using the management API?
I have tried to use:
/api/v1/users?user_id=1234&user_id=5678But this gives me an error that the userId provided is not valid. When I pass a singular one it works fine. But ideally I want to retrieve the users I need within one API call.
Hi, I have a mutli-tenant project setup in Next.js. When the user wants to login I add the orgCode
with the intention of the user directly logging into that specific organization. This works when I have a user with only one organization, and when a wrong orgCode is supplied then the user also receives the appropriate errors.
But when I have a user assigned to two organizations, they still get a prompt on which organization they want to sign into, even though the organization is already supplied via the orgCode
.
Here is the code I use to redirect the user to the login with the supplied orgCode
, maybe someone knows what is wrong or is this expected behaviour?
// Redirect to login with the correct organization code return NextResponse.rewrite( new URL( `/api/auth/login?orgCode=${orgCode}&post_login_redirect_url=https://${subdomain}.lvh.me:3000`, req.url ) );
Hey, I'm setting up organisation logins for my multi-tenant application in Next.js. The organisation handle matches the subdomain. The main site url is https://lvh.me:3000
, and the tenants like https://tenant1.lvh.me:3000
, what should be KINDE_SITE_URL
value in my .env file. If I put https://lvh.me:3000
it has issues with the callback url since it doesn't include the subdomain (see screenshot below).