aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.41k stars 2.11k forks source link

Does the JWT Token refresh also updates the service-specific objects, such as S3? #6

Closed vbudilov closed 6 years ago

vbudilov commented 6 years ago

Hi all, great product!

With the current workflow (non-awsamplify), once a user signs in and I retrieve the access tokens for him, I can then create service-specific objects such as S3 and DDB. After an hour I would need to re-generate the objects since the tokens have expired and everything needs to be refreshed. Does aws-amplify take care of re-instantiating the service-specific objects or do the devs need to take care of this themselves?

Thanks, Vladimir Budilov

richardzcode commented 6 years ago

Thank you Vladimir! Yes the idea is aws-amplify takes care of service-specific objects. Developer access S3 or DDB through aws-amplify, don't need to hold those service-specific object directly.

Thanks, Richard

vbudilov commented 6 years ago

Great! So when the JWT tokens are refreshed, the service-specific objects are also recreated, correct?

richardzcode commented 6 years ago

@vbudilov Yes you are right.

github-actions[bot] commented 3 years ago

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.