Fix onRefreshToken handler.