Welcome to the Kinde community

Updated 7 months ago

Pagination and the API

Hi team,

I'm currently rolling my own user facing organization management screen ( a lot like Clerks - inviting users, controlling permissions, etc. ) - it actually wasn't as difficult as I expected, just needed to roll my own invite system ( side note: I think natively offering this stuff much like Clerk does would make migrating from Clerk to Kinde like I did a lot easier, just want to put it on your radars if it isn't already )

One thing I have found a little tricky working with the Management API though is pagination. I understand I can specify page_size and next_token but having a way to grab the total amount of users at a glance would be great because at this stage, my table doesn't really know how big the organizations users table could be, and therefore has no idea what to specify as a max page. Likewise, being able to provide a page instead of a next_token as a cursor would make things a lot easier to work with, like using the built-in pagination features of Tanstack Table.

If I'm missing something obvious, please let me know! This isn't a breaking feature for me as I can just turn the table into an infinite scrolling one, but would prefer pagination for the larger orgs.
A
1 comment
Thanks for taking the time to write out your feedback.

We do have our eyes set for functionality for sending email invites when adding a users in your product.

I will pass along of this API feedback to the team to see where we can start to make it easy to use.
Add a reply
Sign up and join the conversation on Discord