I have created a service for calling API from my angular application. In that service, I have declared ROOT_URL and TOKEN variables and assigned values for these.
Below the declaration, there are few get methods to API using the above ROOT_URL and TOKEN.
Issue i am facing is, this TOKEN value is expired every 24 hours so that i have to change the value everyday. I use the previous TOKEN to get a refresh token using postman.
Can some one give me a solution how can i implement this will happen automatically every time when TOKEN expires?