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 moreusers
to loop through. - If there are no
users
in your app, then nextPaginationToken will beundefined
andusers
will be an empty array.