refresh-token

Refresh token Angular

时光毁灭记忆、已成空白 提交于 2020-07-23 06:17:11
问题 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

Refresh token Angular

白昼怎懂夜的黑 提交于 2020-07-23 06:16:30
问题 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