def METHOD_NAME(self):
    """Test last_auth_threshold"""
    ident_stage = IdentificationStage.objects.create(
        name=generate_id(),
        user_fields=[
            UserFields.USERNAME,
        ],
    )
    device: SMSDevice = SMSDevice.objects.create(
        user=self.user,
        confirmed=True,
        stage=self.stage,
    )
    stage = AuthenticatorValidateStage.objects.create(
        name=generate_id(),
        last_auth_threshold="hours=1",
        not_configured_action=NotConfiguredAction.CONFIGURE,
        device_classes=[DeviceClasses.SMS],
    )
    stage.configuration_stages.set([ident_stage])
    flow = create_test_flow()
    FlowStageBinding.objects.create(target=flow, stage=ident_stage, order=0)
    FlowStageBinding.objects.create(target=flow, stage=stage, order=1)
    response = self.client.post(
        reverse("authentik_api:flow-executor", kwargs={"flow_slug": flow.slug}),
        {"uid_field": self.user.username},
        follow=True,
    )
    self.assertEqual(response.status_code, 200)
    send_mock = MagicMock()
    with patch(
        "authentik.stages.authenticator_sms.models.AuthenticatorSMSStage.send", send_mock
    ):
        response = self.client.post(
            reverse("authentik_api:flow-executor", kwargs={"flow_slug": flow.slug}),
            {
                "component": "ak-stage-authenticator-validate",
                "selected_challenge": {
                    "device_class": "sms",
                    "device_uid": str(device.pk),
                    "challenge": {},
                },
            },
        )
    self.assertEqual(send_mock.call_count, 1)
    device.generate_token()
    response = self.client.post(
        reverse("authentik_api:flow-executor", kwargs={"flow_slug": flow.slug}),
        {"code": device.token},
    )
    self.assertIn(COOKIE_NAME_MFA, response.cookies)
    self.assertStageResponse(response, component="xak-flow-redirect", to="/")