A refactor as part of #130 shifted a bit too much of code. It led to the change of key of the LastAuthUser attribute of the CognitoUser class from
CognitoIdentityServiceProvider.${pool.getClientId()}.LastAuthUser to CognitoIdentityServiceProvider.${pool.getClientId()}.$username.LastAuthUser.
On the User Pool class, the lastAuthUser is still looked up under the previous key...
Changes
Add a far from elegant poolKeyPrefix used only for the LastAuthUser in CognitoUser class
Rewrite the keyPrefix as the poolKeyPrefix.$username
Why?
A refactor as part of #130 shifted a bit too much of code. It led to the change of key of the
LastAuthUser
attribute of the CognitoUser class fromCognitoIdentityServiceProvider.${pool.getClientId()}.LastAuthUser
toCognitoIdentityServiceProvider.${pool.getClientId()}.$username.LastAuthUser
.On the User Pool class, the lastAuthUser is still looked up under the previous key...
Changes
poolKeyPrefix
used only for theLastAuthUser
in CognitoUser classpoolKeyPrefix.$username