Monday 29 July 2019

How to retrieve external authentication tokens periodically?

I have a weird problem that I can’t seem to solve without using some weird hacks.I have 3 external api’s that I need to authenticate with for my app to function properly.I currently pass in secrets that are used to authenticate, then I receive tokens with a certain TTL.Right now, I am using setInterval() every 15 mins to re-retrieve the secrets.Is there a less hacky way to do this?

Submitted July 30, 2019 at 02:44AM by UkraineTheMotherLand

No comments:

Post a Comment