Token is not from a supported provider of this identity pool when trying to get user attributes in @aws-amplify/auth 6
I have a simple React Native application that uses Cognito for authentication and in one of the screens I want to show some user attributes associated with the logged in user.