We are trying to set up a desktop application requiring a multi factor authenticated login to connect to Amazon\'s API gateway. To this end, we have used Amazon Cognito for the