If I can regenerate Authorization again after some time (say 2hours), I can use it. Else I need to add a scheduler to call Authorization after 2 hours.
This is the below code that I have used to call Authorization in karate-config.js and I have used this throughout the project.
var websecAPI = karate.callSingle('classpath:service/Regression/RestClient.feature@restclient',config);
config.Authorization = websecAPI.Authorization;