amazon-archives / amazon-cognito-identity-js

Amazon Cognito Identity SDK for JavaScript
Other
984 stars 454 forks source link

InvalidParameterException: TIMESTAMP format should be EEE MMM d HH:mm:ss z yyyy in english. #683

Closed Ashirogi-Muto closed 6 years ago

Ashirogi-Muto commented 6 years ago

I am using Cognito's intiateAuth and respondToAuthChallenge to which I am providing the timestamp as this:- 'Mon Feb 12 15:26:37 +05:30 2018'. Still, I get the invalid parameter exception. UPDATE:- The z was supposed to be the timezone which I was providing it in a different format. Now its:- TIMESTAMP: 'Mon Feb 12 15:56:9 IST 2018' but the issue is still not resolved.

Ashirogi-Muto commented 6 years ago

I used Cognito Identity's forgotPassword flow to change passwords instead.