Skip to main content
Version: 6.1.X
caution

This function is deprecated. Please use supertokens.getUsersNewestFirst instead if you are using core version >= 3.5

getUsersNewestFirst(limit, nextPaginationToken)

Parameters#

  • limit (Optional)
    • type: number
  • nextPaginationToken (Optional)
    • type: string

Returns#

  • Promise<{users: User[]; nextPaginationToken?: string | undefined;}> Returns a list of users sorted by newest first.

Additional Information:#

  • If the nextPaginationToken is undefined, then there are no more users to loop through.
  • If there are no users in your app, then nextPaginationToken will be undefined and users will be an empty array
What type of UI do you want to use?
Custom UI
Pre built UI