are we allowed to ask username from customer

We have apple login connected to our app. we also have the feature that when a customer login with apple or any social media he/she can login with their email directly from email login. but in case of apple login when customer prefers to hide their email, this is not suitable as the private email is difficult for customer to learn and it my change later. so are we allowed to ask customer username to fill when they prefer to hide their email. ps we used to ask the customer email to be filled when they hide their email but our app was rejected as it seems to violate apples terms. this is the new feature we are planning to add. is it allowed to add that.

Yes, you can ask the user to create a username as long as it is not an email.

are we allowed to ask username from customer
 
 
Q