def get_device(self, **kwargs):
        kwargs = kwargs or {}
        kwargs.update(self.storage.validated_step_data.get('setup', {}))
        return PhoneDevice(key=self.get_key(), **kwargs)
Uses the data from the setup step and generated key to recreate device.
dataset/ETHPy150Open Bouke/django-two-factor-auth/two_factor/views/core.py/PhoneSetupView.get_device