Fix a bug with refresh_tokens