the generated token is saved in redis cache