Rough implementation of socialAuth