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

bug: Add to src/token-service/metadata-token-service.ts regular token updates #130

Open
Zork33 opened this issue Jul 21, 2023 · 0 comments · May be fixed by #135
Open

bug: Add to src/token-service/metadata-token-service.ts regular token updates #130

Zork33 opened this issue Jul 21, 2023 · 0 comments · May be fixed by #135

Comments

@Zork33
Copy link

Zork33 commented Jul 21, 2023

Right now the token is not renewed, and after 12 hours Iam token gets expired

Token needs to be refreshed every 1 hour (~10% of 12 hours as recommended in Iam documentation)

The refresh should be done at the time the token is requested. With timer based implementation, two problems arise:

  • It is not known when the objectmetadata-token-service.ts class object becomes unnecessary, so there is no a place where to clear a timer
  • In serverless functions a timer behaves specifically - it doesn't work at all between serverless function calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant