Fixed token renewal in rest resrvices