Skip to content

Commit

Permalink
pipeline: make sure uid is string
Browse files Browse the repository at this point in the history
It is stored as string in the database, so make conversion early.

Fixes python-social-auth/social-app-django#568
  • Loading branch information
nijel committed Apr 25, 2024
1 parent 948235e commit 3082015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social_core/pipeline/social_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def social_details(backend, details, response, *args, **kwargs):


def social_uid(backend, details, response, *args, **kwargs):
return {"uid": backend.get_user_id(details, response)}
return {"uid": str(backend.get_user_id(details, response))}


def auth_allowed(backend, details, response, *args, **kwargs):
Expand Down

0 comments on commit 3082015

Please sign in to comment.