Welcome to the Kinde community

J
Jeremy
Offline, last seen 2 months ago
Joined September 23, 2024
Hi, I'm just starting with Kinde, and I'm trying to use the Users API. I've enabled the API in my environment, but when I add the following code, it errors out.
Plain Text
  const kindeClient = await createKindeManagementAPIClient();
  const kindeUsers = await kindeClient.usersApi.getUsers();


Error:
Plain Text
Unhandled Runtime Error

Error: Response returned an error code
Call Stack
new ResponseError
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (750:28)
UsersApi.<anonymous>
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (654:31)
step
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (169:23)
Object.next
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (110:20)
fulfilled
/home/jeremy/dev/pinch/pinch-app/.next/server/chunks/ff14f_@kinde-oss_kinde-typescript-sdk_dist_2f9f65._.js (73:32)
process.processTicksAndRejections
node:internal/process/task_queues (95:5)
30 comments
D
v
J
A
As someone just starting with Kinde, I go to your docs homepage. I click NextJS. I see fairly quickly a reference to "audience" - I have no idea what this means. I feel you should elaborate on this page, or link to somewhere with more information. As I've been trying to get the management API to work, I see support here mentioning setting the audience, but I don't really know how, what the impact is, why I need to do that. I see examples like "reg@live" and also "https://DOMAIN.us.kinde.com/api". I do see some elaboration here which is better than nothing but I still don't quite understand the need for it.
1 comment
O
The Nextjs SDK documentation should have more documentation on how to implement custom domains for auth. I've asked here for support on it and have yet to find a solution, but even when I do, the docs should be a bit more helpful here.
2 comments
J
O
what is the value of the subscriber list? as far as I can tell, you can't send emails, and when you"convert to user" there is no notification sent to the user, so they have no way of knowing. I don't see any value here over simply tracking a list of emails in a database, and then emailing them through an external service (at which point it's easier to gather emails there). similar question for access requests - if Kinde doesn't email the user when the request is granted, don't I have to do that manually? just trying to understand the use cases here
2 comments
O
This would simplify code by reducing the need for null checks.
5 comments
A
E
J
Is there a way to suppress the error in the logs when accessing Kinde data when not logged in? I'm referring to Error: Cannot get user details, no authentication credential found.
1 comment
J
Hi, I've just started using Kinde. I'm trying to add a role or permission to my user in my dev environment, but I get a error 500 with no further information.
21 comments
J
A
d