From d64484e1f38a2e2238073ff21c865ae3910ab304 Mon Sep 17 00:00:00 2001 From: Kha Truong <64438356+khatruong2009@users.noreply.github.com> Date: Mon, 22 Jan 2024 14:54:15 -0800 Subject: [PATCH] chore: removed legacyDeviceSecretsStore (not used) --- .../AmplifyAuthCognitoPlugin.kt | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/auth/amplify_auth_cognito/android/src/main/kotlin/com/amazonaws/amplify/amplify_auth_cognito/AmplifyAuthCognitoPlugin.kt b/packages/auth/amplify_auth_cognito/android/src/main/kotlin/com/amazonaws/amplify/amplify_auth_cognito/AmplifyAuthCognitoPlugin.kt index 5a0e5323bc7..01e9ef8ae19 100644 --- a/packages/auth/amplify_auth_cognito/android/src/main/kotlin/com/amazonaws/amplify/amplify_auth_cognito/AmplifyAuthCognitoPlugin.kt +++ b/packages/auth/amplify_auth_cognito/android/src/main/kotlin/com/amazonaws/amplify/amplify_auth_cognito/AmplifyAuthCognitoPlugin.kt @@ -103,16 +103,6 @@ open class AmplifyAuthCognitoPlugin : ) } - /** - Legacy Device Secrets Storage. - */ - private val legacyDeviceSecretsStore: LegacyKeyValueStore by lazy { - LegacyKeyValueStore( - applicationContext!!, - "CognitoIdentityProviderDeviceCache.." - ) - } - /** ASF Device Secrets Storage. */ @@ -333,12 +323,12 @@ open class AmplifyAuthCognitoPlugin : if (appClientId != null) { val lastAuthUser = legacyUserPoolStore["CognitoIdentityProvider.$appClientId.LastAuthUser"] - val LegacyDeviceSecretsStore = new LegacyKeyValueStore( + val legacyDeviceSecretsStore = new LegacyKeyValueStore( applicationContext!!, "CognitoIdentityProviderDeviceCache.$userPoolId.$lastAuthUser" ) - LegacyDeviceSecretsStore.clear() + legacyDeviceSecretsStore.clear() } asfDeviceSecretsStore.clear()