Getting Cognito User custom attributes with amazon-cognito-identity.min.js
I have a Cognito user authentication using amazon-cognito-identity.min.js. Login, getting jwt token works just fine. Now I would like to get user custom attributes, but can't get it working - I am getting error "User is not authorized". I found…