fix bugs for refreshing token using redis implementation