Account linking considerations for email case sensitivity

Problem statement

When we want to use account linking, what will happen if a user from a github connection has an email like Test@example.com and I want them to link with their google account but their email is test@example.com. Will the casing prevent these accounts from linking?

Solution

If you are using the Account Linking Extension rule, this is already accounted for when searching for matching emails by applying toLowerCase() to emails:

request({
   url: userSearchApiUrl,
   headers: {
     Authorization: 'Bearer ' + auth0.accessToken
   },
   qs: {
     email: user.email.toLowerCase()
   }
  },

If you are linking accounts with the Management API, there is no requirement for emails to match on the two accounts:

https://auth0.com/docs/api/management/v2/users/post-identities