Enable automatically linking user accounts with different identities

@matt.g thanks for the above suggested solution,
I tried it, but seems to be not working for me.
The rule didn’t link user identities before user attempts to login for the first time using social IdP.
Rule exited producing following logs

12:08:59 PM:
 [-] Skipping link rule
12:08:59 PM:
 finished webtask request

And social IdP login attempt failed with error Please verify your email before logging in., because of newly created user account with social oauth2 identity which has unverified email since it’s not yet been linked to primary account.

Any thoughts on this, am I doing something wrong here.
If any details required for troubleshooting I can provide.