Hi @bniksa,
Welcome to the Auth0 Community!
I can confirm that user objects will vary depending on the connection type. The user object is dependent on how the IdP returns the info.
You can use Rules to manipulate this data after a successful login.
For example:
function (user, context, callback) {
if (context.connectionStrategy === "apple") {
const nameArr = user.name.split('@')[0].split('.');
user.name = `${nameArr[0]} ${nameArr[1]}`;
}
callback(null, user, context);
}
This will normalize the name
property from john.doe@gmail.com
to john doe
. This rule does not permanently change this property in the user profile, but simply normalizes what is returned after successful login.
Hope that helps!