amplify-js icon indicating copy to clipboard operation
amplify-js copied to clipboard

feat(auth): Pass more details to list of devices

Open TheTimeWalker opened this issue 2 years ago • 0 comments

Description of changes

This small change adds extra details to the list of devices. The following attributes have been added to AuthDevice:

  • Status
  • Last IP address used
  • Creation timestamp
  • Last modification timestamp
  • Last Authentication timestamp

Typical use case would be to allow the user to see more details, like the last access and IP address, and assess if the device should be revoked. These are already sent in a response by the Cognito endpoint and are merely just passed through the SDK.

Issue #, if available

Description of how you validated changes

  • Ran yarn test
  • Tested locally on a company project which already implements a list of devices

Checklist

  • [x] PR description included
  • [x] yarn test passes
  • [ ] Tests are changed or added
  • [ ] Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

TheTimeWalker avatar Aug 08 '22 21:08 TheTimeWalker