added support on refreshing when token becomes stale