Closed jkaho closed 1 year ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit 21a2262da17179b87e632e1e1d0c5952aaa59a3f:
Sandbox | Source |
---|---|
Vanilla | Configuration |
In a similar manner to Segment's
identify
method I feel like we need a way to easilyreset
the identifiers. I know we're not at the point of adding an "identify" type event at the moment, but I just wanted to raise it.
Definitely! I wrote a proposal about accepting aa('setUserToken', undefined)
(or aa('setAuthenticatedUserToken', undefined)
) to restore the user token in RFC: Ability to restore anonymous user token in Search Insights.
Although it doesn't have to be implemented at the same time as this introduction, it's needed to support logout scenarios.
@JasonBerry made some additional changes as per my commits 🙏
What
authenticatedUserToken
field to event typessetAuthenticatedUserToken
method to enable users to set the field to be automatically passed in subsequentsendEvent
callsgetAuthenticatedUserToken
method to enable users to get theauthenticatedUserToken
fieldonAuthenticatedUserTokenChange
to enable passing a callback onauthenticatedUserToken
changeauthenticatedUserToken
to be passed oninit
Links
EEX-746
More context: