Reputation: 618
I'm looking forward to use AWS Cognito User Pool in my application. And have several questions:
How to get/add Id(to be used as external key) to user record? I have several options:
a. Leverage username - but I wanted to use random string as ids; and even I fill username this way and enable aliasing for logging in - this field still client-side populated - so I have no control over it.
b. Add custom field - how/where to properly populate it?
c. Use sub
field of access token - there is no proper way to get it - except base64-decoding access token - that looks hacky.
Upvotes: 2
Views: 2622
Reputation: 1797
Upvotes: 4