Closed iparshantnagpal closed 5 years ago
@ParshantAroras - The Interactions.send() function should ultimately call this line of code, which should result in expired tokens being refreshed. Could you try opening the debugger and seeing if this line is getting called?
Yes sure @haverchuk I will check it by tommorow morning and let you know Thanks for your response appreciated
Hi @haverchuck path : aws-sdk/lib/cognitoIdentityCredentials.js
/**
and this method self.cognito.getCredentialsForIdentity is calling api which gives the error are in clients/cognitoIdentity.js
getCredentialsForIdentity(params: CognitoIdentity.Types.GetCredentialsForIdentityInput, callback?: (err: AWSError, data: CognitoIdentity.Types.GetCredentialsForIdentityResponse) => void): Request<CognitoIdentity.Types.GetCredentialsForIdentityResponse, AWSError>; /**
these are the api which gives the error
@ParshantArora - In the entry point of your application, can you do: import AWS from 'aws-sdk' ...and then, after you call Amplify.configure, do AWS.config.correctClockSkew = true?
Please respond with whether or not that has any effect.
Solved that issue just we have set the new Login Token inside the Aws library
@ParshantAroras I'm sorry - did the clockSkew configuration solve the issue or did you have some sort of other fix?
@ParshantAroras I'm sorry - did the clockSkew configuration solve the issue or did you have some sort of other fix?
Hi @haverchuck your solution is not working with aws-appsync, can you please help me out with that ?
After 1 hour the login token is expired then refresh token wont work at that time. What you have to do is to generate new Login token and then you need to reset the login token inside the aws-sdk library . It works for me
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
Describe the bug Invalid login token. Token expired: 1563259261 >= 1563256680 getting this error when i left the app for some time
We have integrated the chatbot using the aws-amplify package with react-native. Every thing goes smooth if we left the app for sometime and then again hit the bot (Interaction.send() ) then Invalid login token. Token expired: 1563259261 >= 1563256680"} this error come. I have done a-lot of Research and Development but no solution works This is the session timeout Please help us how we can increase the timeout or give some method to refresh the token before hitting the bot