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

bestName #20

Open
ianstormtaylor opened this issue Jan 23, 2014 · 0 comments
Open

bestName #20

ianstormtaylor opened this issue Jan 23, 2014 · 0 comments

Comments

@ianstormtaylor
Copy link
Contributor

it would be nice to have a "best name" helper for cases when you want to display a nice name from an identify request (olark, live debugger, etc.)

would be like:

return this.email()
  || this.username()
  || this.name()
  || this.userId()
  || this.sessionId();

but then ideally the very best is like First Last (email)

might make sense to rename .uid to .bestId at that point and include sessionId in its attempted ids

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant