awslabs / aws-mobile-appsync-sdk-js

JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Apache License 2.0
921 stars 266 forks source link

aws-appsync-auth-link: how to correct system clock skew and pass systemClockOffset to the AppSync #730

Open AlessioVallero opened 2 years ago

AlessioVallero commented 2 years ago

Note: If your issue/feature-request/question is regarding the AWS AppSync service, please log it in the official AWS AppSync forum

Do you want to request a feature or report a bug? feature What is the current behavior? When using Apollo GraphQL and instantiating an ApolloClient with aws-appsync-auth-link, how can we pass the systemClockOffset option to the Amplify instance so that we can correct clock skew issues?

Something like:

{
......
    systemClockOffset: -3600000,
})

Thanks in advance!

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior?

Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?

danielvouch commented 2 years ago

Is there any update on this?

It is effecting our customers using IAM credentials - how do we fix this?