furaiev / amazon-cognito-identity-dart-2

Unofficial Amazon Cognito Identity Provider Dart SDK, to easily add user sign-up and sign-in to your mobile and web apps with AWS.
MIT License
182 stars 113 forks source link

timezone issue. aws get api with AwsSigV4Client received 403 #195

Closed MurtuzaSrashtaSoft closed 1 year ago

MurtuzaSrashtaSoft commented 2 years ago

The mobile device timezone is china. and mobile is located in the United States. At that time app called aws post API /things/$thing/shadow(get api).but received 403. I see the signature SigV4 that method used DateTime.now.

path :- cognito_credentials.dart.dart Line number 129

That may cause an issue. after resetting the mobile time zone in auto mode it's working fine.

will you change all methods which compare DateTime.now insted of UTC Time zone.

Screenshot 2022-06-09 at 11 32 29 AM

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.