I am using pyjwt version 2.4.0
and I think it's conflicting and showing this error:
AttributeError: 'str' object has no attribute 'decode'
When I try to use this:
access_token = self.authorize.create_access_token(subject=body.phone)
refresh_token = self.authorize.create_refresh_token(subject=body.phone)
When I down grade pyjwt to 1.7.0 it works fine.