TL;DR —
Using pre-request script to store the access tokens, refresh token as a value object in a map with key being the cluster URL. This can be avoided by using environment variables. Using environment variables, you can switch to different clusters easily by switching the environment. The code is set via the environment variables. It is now possible to use the environment to switch between clusters in different environments. The configuration is set by the same environment that is used for a single cluster setup in the US and EU data center.
[story continues]
Written by
@arvindkgs
Passionate software developer, Linux enthusiast, clean code crusader, DIY advocate, Tech Evangelist
Topics and
tags
tags
postman|distributed-infrastructure|testing|rest-api|backend|webhook|api|programming
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: QMtfs0ltt-pTQ--kE6q4kK4VJChhwYUl9A0onRSIIpc
