amazon-archives / aws-sdk-react-native

AWS SDK for React Native (developer preview)
Apache License 2.0
631 stars 68 forks source link

Refresh access #32

Open ksegla opened 7 years ago

ksegla commented 7 years ago

Hi Thanks for the great work. I'm having a hard time achieving the following once a user is logged in with Facebook 1) What do I have to code to avoid a disconnection from Cognito after 1h? 2) What do I have to code to get a connection back when I close/reopen the app? Integration of these in the documentation would be a huge plus! Thanks

buckitsyyid commented 7 years ago

my credentials also expire within an hour it Cognito does not appear to refresh as I am guessing it is supposed to automatically. anything new here?

kevinwolfcr commented 7 years ago

The documentation it's inexistent, also I have not heard of anyone from the organization replying issues.

Any help here, please?

buckitsyyid commented 7 years ago

Just an FYI.. I got around this by using the AWS expiration time and manually doing a login if the STStoken is expired.