Describe the bug
We are initializing the user without passing any key, so, we let the SDK generate one, in this way:
LDClient.configure(configuration, { })
This means the user will be initialized as anonymous.
After the user logins we use the identify method in order to change the anonymous to false and set some custom parameters:
LDClient.identify({ anonymous: false, custom: { userId }})
It seems that the changes are not handled and the user still remains an anonymous user
To reproduce
As in description
Expected behaviour
The user should be turned to non-anonymous
Logs
([["user": ["anonymous": true, "custom": ["device": "iPhone13,2", "os": "15.2", "customerId": asYiSDUAAXo7U6JjSkKzKH], "key": "773D6E7E-9DBE-489B-9A45-7D4AD7C78EE8"], "creationDate": 1643297299063, "kind": "identify", "key": "773D6E7E-9DBE-489B-9A45-7D4AD7C78EE8"], ["key": "773D6E7E-9DBE-489B-9A45-7D4AD7C78EE8", "user": ["key": "773D6E7E-9DBE-489B-9A45-7D4AD7C78EE8", "anonymous": true, "custom": ["os": "15.2", "customerId": "xxxxxxxxxx", "device": "iPhone13,2"]], "kind": "identify", "creationDate": 1643297299760]])
SDK version
5.1.1
Language version, developer tools
React native 0.65.1
OS/platform
OS/Android
Additional Context
We tried also the alias method with the same result