fix social login api issue