You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: auth0/src/main/java/com/auth0/android/authentication/AuthenticationAPIClient.kt
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,7 @@ public class AuthenticationAPIClient @VisibleForTesting(otherwise = VisibleForTe
174
174
return loginWithToken(requestParameters)
175
175
}
176
176
177
+
177
178
/**
178
179
* Log in a user using the One Time Password code after they have received the 'mfa_required' error.
179
180
* The MFA token tells the server the username or email, password, and realm values sent on the first request.
@@ -196,6 +197,10 @@ public class AuthenticationAPIClient @VisibleForTesting(otherwise = VisibleForTe
196
197
* MFA application such as Google Authenticator or Guardian.
197
198
* @return a request to configure and start that will yield [Credentials]
198
199
*/
200
+
@Deprecated(
201
+
message ="loginWithOTP is deprecated and will be removed in the next major version of the SDK. Use the APIs in the [com.auth0.android.authentication.mfa.MfaApiClient] class instead.",
@@ -409,6 +414,10 @@ public class AuthenticationAPIClient @VisibleForTesting(otherwise = VisibleForTe
409
414
* This is usually an OTP-like code delivered as part of the challenge message.
410
415
* @return a request to configure and start that will yield [Credentials]
411
416
*/
417
+
@Deprecated(
418
+
message ="loginWithOOB is deprecated and will be removed in the next major version of the SDK. Use the APIs in the [com.auth0.android.authentication.mfa.MfaApiClient] class instead.",
419
+
level =DeprecationLevel.WARNING
420
+
)
412
421
publicfunloginWithOOB(
413
422
mfaToken:String,
414
423
oobCode:String,
@@ -445,6 +454,10 @@ public class AuthenticationAPIClient @VisibleForTesting(otherwise = VisibleForTe
445
454
* @return a request to configure and start that will yield [Credentials]. It might also include a [recoveryCode] field,
446
455
* which your application must display to the end-user to be stored securely for future use.
447
456
*/
457
+
@Deprecated(
458
+
message ="loginWithRecoveryCode is deprecated and will be removed in the next major version of the SDK. Use the APIs in the [com.auth0.android.authentication.mfa.MfaApiClient] class instead.",
459
+
level =DeprecationLevel.WARNING
460
+
)
448
461
publicfunloginWithRecoveryCode(
449
462
mfaToken:String,
450
463
recoveryCode:String
@@ -478,6 +491,10 @@ public class AuthenticationAPIClient @VisibleForTesting(otherwise = VisibleForTe
478
491
* @param authenticatorId The ID of the authenticator to challenge.
479
492
* @return a request to configure and start that will yield [Challenge]
480
493
*/
494
+
@Deprecated(
495
+
message ="multifactorChallenge is deprecated and will be removed in the next major version of the SDK. Use the APIs in the [com.auth0.android.authentication.mfa.MfaApiClient] class instead.",
0 commit comments