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()