caution
This function is deprecated. Please use supertokens.getUsersNewestFirst
instead if you are using core version >= 3.5
getUsersNewestFirst(limit, nextPaginationToken)
#
Parameterslimit
(Optional)- type:
number
- type:
nextPaginationToken
(Optional)- type:
string
- type:
#
ReturnsPromise<{ users: User[], nextPaginationToken?: string | undefined }>
. Returns a list of users sorted by newest first.
#
Additional Information:- If the
nextPaginationToken
isundefined
, then there are no moreusers
to loop through. - If there are no
users
in your app, then nextPaginationToken will beundefined
andusers
will be an empty array.