Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vbudilov opened this issue Nov 20, 2017 · 4 comments

Comments

@vbudilov
Copy link

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
Copy link
Contributor

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
Copy link
Author

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

@richardzcode
Copy link
Contributor

@vbudilov Yes you are right.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants