In my case, initally I generated an access token and refresh token using a node application and store it in key vault of azure. Then I expose one endpoint which helps me to generate new access token from refresh token, if access token expire, I pull
read more