Giter Club home page Giter Club logo

Comments (4)

ashishdhingra avatar ashishdhingra commented on June 18, 2024

Just for reference, CognitoUser.ListDevicesAsync() doesn't have ability to return PaginationToken, which is returned from the service as mentioned in the ListDevices API reference.

@erikkanderson Feel free to contribute the feature request. However, kindly note that changing return signature would be a breaking change and method overloading doesn't consider return types. May be following approaches might work:

  • Adding a similarly named method, e.g. ListDevicesWithPaginationTokenAsync() might be helpful; OR
  • May be add a method named ListAllDevicesAsync() with no limit that lists devices with pre-defined constant limit value and uses pagination token to retrieve next set of results!

My hunch about the original design is that it just sets the upper limit for the number of devices to return irrespective of whether there are more devices or not, hence it disregards pagination token. So 2nd approach appears to be the way to go forward.

I have also changed the title of the issue for it to be more descriptive.

from aws-sdk-net-extensions-cognito.

ashishdhingra avatar ashishdhingra commented on June 18, 2024

We have implemented new ListDevicesV2Async method in Amazon.Extensions.CognitoAuthentication version 2.4.0 which allows listing additional pages of devices. The response returned from this method contains DeviceType objects which could be used to construct list of CognitoDevice type objects and a PaginationToken which could be used to access remaining device types (if any).

from aws-sdk-net-extensions-cognito.

github-actions avatar github-actions commented on June 18, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

from aws-sdk-net-extensions-cognito.

erikkanderson avatar erikkanderson commented on June 18, 2024

Just implemented a call with ListDeviceV2Async, works great. Thank you.

from aws-sdk-net-extensions-cognito.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.