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

twitter email issue #11

Open
robsilva opened this issue May 15, 2014 · 1 comment
Open

twitter email issue #11

robsilva opened this issue May 15, 2014 · 1 comment

Comments

@robsilva
Copy link

After authenticating with Twitter, the user is not able to sign in because "email can't be blank". As far as I can tell twitter won't share their user's email with my app. How do you usually handle that? Awesome job on this gem, by the way!

@arjanfrans
Copy link

That is the downside of using Twitter as an authentication provider.

Instead of directly creating the user, redirect to the registration form where they can fill in their e-mail. Information you got from Twitter, like their name, can be filled in already for them.

You can save the information you got from Twitter in a session variable. After they registered with the registration form the account will be linked (using the information that is stored in the session variable). This is what I did on some other projects (non Rails).

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