Im trying to setup django socail auth. I have configured everything according to docs and its working at the point where I can authenticate with google from my django app. But after authentication from google, when the request comes back to my app I'm getting the following error:
DataError at /auth/complete/google-oauth2/
value too long for type character varying(16)
I looked up on google and found that this is caused by storing a value whose length is greater than 16 in a variable of length 16 (If I'm not wrong).
But I cannot figure out which variable it is that is causing this error.
I have looked at social_auth models.py and no variable has length of 16.
Have any of you guys had a similar problem?
TIA
I looked up in pgAdmin
and the field that was causing this problem was uid
of UserSocialAuth
model.
It had a length of 16, I changed it to 255 and it solved the problem.