Skip to content

Commit

Permalink
chore: removed legacyDeviceSecretsStore (not used)
Browse files Browse the repository at this point in the history
  • Loading branch information
khatruong2009 committed Jan 24, 2024
1 parent ef5d467 commit f2274fa
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,6 @@ open class AmplifyAuthCognitoPlugin :
)
}

/**
Legacy Device Secrets Storage.
*/
private val legacyDeviceSecretsStore: LegacyKeyValueStore by lazy {
LegacyKeyValueStore(
applicationContext!!,
"CognitoIdentityProviderDeviceCache.<userPoolId>.<username>"
)
}

/**
ASF Device Secrets Storage.
*/
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit f2274fa

Please sign in to comment.