st4lk / django-rest-social-auth

OAuth signin with django rest framework
MIT License
519 stars 122 forks source link

TypeError in django-rest-social-auth/rest_social_auth/views.py at line 225 #144

Closed sputnik5459 closed 3 years ago

sputnik5459 commented 3 years ago

in message = error.response.json()['error']['message'] error.response.json()['error'] not always returns dict. As I understand, sometimes it's a string, so, code breaks with TypeError: string indices must be integers. You should add types handling.

st4lk commented 3 years ago

Fixed by https://github.com/st4lk/django-rest-social-auth/pull/145

st4lk commented 3 years ago

Available in pypi: https://pypi.org/project/rest-social-auth/6.0.1/