Here is the case,
User A sign up on the portal using email and password, later he wish to login with the same email but with Google OAuth. However he gets an error;
You do not have access to this database or your invitation has expired. Please ask for an invitation and be sure to follow the link in your invitation email.
Basically here I want to merge the user upon signup using email and login using Google OAuth or vice versa.