getUsersOldestFirst(limit, nextPaginationToken)
Parameters
limit
(Optional)- type:
number
- type:
nextPaginationToken
(Optional)- type:
string
- type:
Returns
Promise<{users: User[]; nextPaginationToken?: string | undefined;}>
Returns a list of users sorted by oldest first.
Throws
Additional Information:
- If the
nextPaginationToken
isundefined
, then there are no more users to loop through. - If there are no users in your app, then
nextPaginationToken
will beundefined
and users will be an empty array