Skip to content

Commit a72d467

Browse files
committed
Removing Dpop Unsupported error
1 parent 6c1fada commit a72d467

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

auth0/src/main/java/com/auth0/android/dpop/DPoPException.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import com.auth0.android.Auth0Exception
55
public class DPoPException : Auth0Exception {
66

77
internal enum class Code {
8-
UNSUPPORTED_ERROR,
98
KEY_GENERATION_ERROR,
109
KEY_STORE_ERROR,
1110
SIGNING_ERROR,
@@ -39,7 +38,6 @@ public class DPoPException : Auth0Exception {
3938

4039
public companion object {
4140

42-
public val UNSUPPORTED_ERROR :DPoPException = DPoPException(Code.UNSUPPORTED_ERROR)
4341
public val KEY_GENERATION_ERROR: DPoPException = DPoPException(Code.KEY_GENERATION_ERROR)
4442
public val KEY_STORE_ERROR: DPoPException = DPoPException(Code.KEY_STORE_ERROR)
4543
public val SIGNING_ERROR: DPoPException = DPoPException(Code.SIGNING_ERROR)
@@ -52,7 +50,6 @@ public class DPoPException : Auth0Exception {
5250

5351
private fun getMessage(code: Code): String {
5452
return when (code) {
55-
Code.UNSUPPORTED_ERROR -> "DPoP is not supported in versions below Android 9 (API level 28)."
5653
Code.KEY_GENERATION_ERROR -> "Error generating DPoP key pair."
5754
Code.KEY_STORE_ERROR -> "Error while accessing the key pair in the keystore."
5855
Code.SIGNING_ERROR -> "Error while signing the DPoP proof."

0 commit comments

Comments
 (0)