i have followed the article : https://jonascheng.github.io/aws/2016/05/19/cognito-with-unauthenticated-identities/
it\'s working for me it is simple to invoke Moc