Skip to content

Commit dc6e272

Browse files
committed
Migrate to UseCase
1 parent 46208e1 commit dc6e272

File tree

8 files changed

+298
-399
lines changed

8 files changed

+298
-399
lines changed

aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/AWSCognitoAuthPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ class AWSCognitoAuthPlugin : AuthPlugin<AWSCognitoAuthService>() {
397397
) = enqueue(onSuccess, onError) { queueFacade.confirmUserAttribute(attributeKey, confirmationCode) }
398398

399399
override fun getCurrentUser(onSuccess: Consumer<AuthUser>, onError: Consumer<AuthException>) =
400-
enqueue(onSuccess, onError) { queueFacade.getCurrentUser() }
400+
enqueue(onSuccess, onError) { useCaseFactory.getCurrentUser().execute() }
401401

402402
override fun signOut(onComplete: Consumer<AuthSignOutResult>) = enqueue(
403403
onComplete,

0 commit comments

Comments
 (0)