Hello StackOverflow family:
I have been beating my head on this error. I am trying to perform an amplify init from terminal and I get this error.
Failed to fetch Amplify Admin Credentials
init failed
Error: TypeError: Cannot read property 'idToken" of undefined
I have gone in and removed the aws cli and everything associated with it. Reinstalled it from scratch. Put in a new account with access token and secret key and still get the above error. What could I do to bypass this error. Any assistance would be helpful. When I logon to the admin console. My app of course does not show up. Thanks in advance.
I found a similar issue with the latest version of amplify cli, switching back to an old version fixed the problem for me:
yarn global add @aws-amplify/[email protected]