Switch to token-based pagination when using kratos api
We're currently using index-based pagination with Kratos, but that's brittle (we're relying on sequential indices but they don't have to be according to the documentation) and deprecated. We should switch to the newer token-based pagination: https://www.ory.sh/docs/ecosystem/api-design#pagination