Skip to content

Commit 9dfc333

Browse files
committed
make login hint optional
1 parent ab00024 commit 9dfc333

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

common4j/src/main/com/microsoft/identity/common/java/nativeauth/providers/responses/signin/AuthenticationMethodApiResponse.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal fun AuthenticationMethodApiResponse.toAuthenticationMethodApiResult():
3333
return AuthenticationMethodApiResult(
3434
id = this.id ?: throw IllegalStateException("Required field id is empty"),
3535
challengeType = this.challengeType ?: throw IllegalStateException("Required field challengeType is empty"),
36-
loginHint = this.loginHint ?: throw IllegalStateException("Required loginHint id is empty"),
36+
loginHint = this.loginHint,
3737
challengeChannel = this.challengeChannel ?: throw IllegalStateException("Required challengeChannel id is empty")
3838
)
3939
}

common4j/src/main/com/microsoft/identity/common/java/nativeauth/providers/responses/signin/AuthenticationMethodApiResult.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import com.microsoft.identity.common.java.nativeauth.util.ILoggable
77
data class AuthenticationMethodApiResult(
88
@Expose @SerializedName("id") val id: String,
99
@Expose @SerializedName("challenge_type") val challengeType: String,
10-
@SerializedName("login_hint") val loginHint: String,
10+
@SerializedName("login_hint") val loginHint: String?,
1111
@Expose @SerializedName("challenge_channel") val challengeChannel: String,
1212
) : ILoggable {
1313
override fun toUnsanitizedString() = "AuthenticationMethod(id=$id, " +

0 commit comments

Comments
 (0)