How to Send Email Invitations for Application Signup for Social accounts such as gmail email?

@dev40 I’ll link to a previous comment I made regarding a question for Account Linking in Auth0 and uninterrupted sessions

If you are setting the Auth0 DB account as the primary account when performing linking, you must also set and return the Auth0 DB account as the user in the Auth0 Rule or Action.

If you are using Auth0 Rules, you can do this with the following

user = primaryUser; 
context.primaryUser = primaryUser.user_id;
return callback(null, user, context);

If you are using Auth0 Actions, you can do this with the following

event.user = primaryUser;
return {
  user: primaryUser
}

I hope this helps!