django-rest-auth icon indicating copy to clipboard operation
django-rest-auth copied to clipboard

Empty email with Facebook registration

Open nioperas06 opened this issue 8 years ago • 6 comments

I'm trying to do registration with Facebook Account. When I gave an Facebook access token, a new user has been created but email is set to null. I have something like this: { "token": "somejwttoken", "user": { "pk": 5, "username": "richard", "email": "", "first_name": "Richard", "last_name": "Sharpesen" } } What's wrong?

nioperas06 avatar Aug 25 '17 15:08 nioperas06

@nioperas06 where you able to fix this issue? because I am facing the same issue. This is only on django rest auth. If I try facebook login using allauth i.e via /accounts/facebook/login I get email as well.

mafia99 avatar Sep 28 '17 23:09 mafia99

I am facing this Issue here too. Did not try the allauth part. But at the REST AUTH api, some times, it do not come with email.

dudanogueira avatar Feb 19 '18 10:02 dudanogueira

Getting the same issue!

soccer99 avatar Jul 29 '18 20:07 soccer99

Same for me, but that's going random, for some users i'm getting email saved in user instance during first login with Facebook and for some i'm not getting anything. And the problem is, that i can't reproduce the situation when user is getting empy email by myself to debug. :(( Anyone fixed that?

spacexdragon avatar Nov 15 '18 19:11 spacexdragon

Same on my side, how to fix this?

ipasic avatar Jan 21 '19 12:01 ipasic

I had the same problem, Adding "email" scope in request will solve the issue.

Alihassanc5 avatar Nov 14 '23 11:11 Alihassanc5