Skip to content

Commit c4ae22e

Browse files
authored
Remove email attribute, Fixes AB#3080769 (#2224)
Remove "email" from the UserAttribute class. The email address is passed as "username" in the signUp process. Bug item description: https://dev.azure.com/IdentityDivision/Engineering/_workitems/edit/3080769 [AB#3080769](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3080769)
1 parent 7044a4a commit c4ae22e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

msal/src/main/java/com/microsoft/identity/nativeauth/UserAttributes.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class UserAttributes(internal val userAttributes: Map<String, String>) {
3434
private const val CITY = "city"
3535
private const val COUNTRY = "country"
3636
private const val DISPLAY_NAME = "displayName"
37-
private const val EMAIL_ADDRESS = "email"
3837
private const val GIVEN_NAME = "givenName"
3938
private const val JOB_TITLE = "jobTitle"
4039
private const val POSTAL_CODE = "postalCode"
@@ -72,15 +71,6 @@ class UserAttributes(internal val userAttributes: Map<String, String>) {
7271
return this
7372
}
7473

75-
/**
76-
* Sets the email address for the user
77-
* @param emailAddress: Email address for the user
78-
*/
79-
fun emailAddress(emailAddress: String): Builder {
80-
userAttributes[EMAIL_ADDRESS] = emailAddress
81-
return this
82-
}
83-
8474
/**
8575
* Sets the given name for the user
8676
* @param givenName: Given name for the user

0 commit comments

Comments
 (0)