Authorise social accounts before first login

Hi John, thanks for the quick response. We tried to implement your solution for few hours, but ran into problems with the api call to the database, do you have any suggestions or reference to similar rule?

Thanks again,
Mattan