modified implemetation of social auth like google,facebook,github