Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

De-identify a user? #47

Closed
alexlatchford opened this issue Jun 6, 2017 · 2 comments
Closed

De-identify a user? #47

alexlatchford opened this issue Jun 6, 2017 · 2 comments

Comments

@alexlatchford
Copy link

Hey I'm using reactjs and our sign out doesn't actually reload the page. How can I sign out a user? I'm currently doing this, which works but seems a little hacky:

ldclient.identify({ key: '', anonymous: false });

I'm not after anonymous tracking, thus the ''. If I pass in null or undefined I get a 400 from the server, if I don't pass anything the user says logged in.

Any suggestions?

@apucacao
Copy link
Contributor

apucacao commented Jun 7, 2017

Hi @alexlatchford,

Thanks for reaching out.

We actually use anonymous users ourselves for this scenario, since we still end up collecting events, without polluting our dashboard with "unknown" users.

Is there a reason why you're trying to avoid anonymous tracking?

As for the 400 error, that's bad etiquette on our part. We're going to improve that.

Cheers,
Alexis

@alexlatchford
Copy link
Author

Ah okay. If that's the convention that's fine by me, I hadn't used the anonymous feature and didn't really want to clutter up our users situation. I'll just throw in some dummy keys and that should fix it, thanks for clarifying!

eli-darkly added a commit that referenced this issue May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants