Using Python social auth in django project and everything was working fine.
I have just updated python social auth to 0.2.1 and I am getting error with load_strategy when trying to refresh google oauth2 token.
Until now I was using:
strategy = load_strategy(backend='google-oauth2')
user = UserSocialAuth.objects.get(uid=..., provider="google-oauth2")
refresh_token(strategy=strategy, redirect_uri='http://.....')
Now I am getting this error:
TypeError: load_strategy() got an unexpected keyword argument 'backend'
Any kind of help will be appreciated.
Using Python social auth in django project and everything was working fine.
I have just updated python social auth to 0.2.1 and I am getting error with load_strategy when trying to refresh google oauth2 token.
Until now I was using:
Now I am getting this error:
Any kind of help will be appreciated.