Closed aprams closed 3 years ago
Ah yeah, that's the one thing I didn't test ;) Thank you. Let's return token
instead of None
if API dictates it.
return (UserModel.objects.get(myshopify_domain=dest_host), token)
Please submit a PR. I'll release it right away.
Sure, that makes sense :)
Released, thanks for the PR. :)
Hi,
the first look in the PR looked fine, I just stumbled across an error in the ShopifyTokenAuthentication(BaseAuthentication) class. I had it overwritten (and still have) for a bit of customization, so I did not realize at first until I merged in your latest changes.
BaseAuthentication's return value is expected to be a tuple of length two:
The current implementation returns "just" the user which leads to an error when trying to unpack that tuple.
My suggestion would be to change to:
If you agree to these changes, I can create a PR