diff --git a/examples/onboarding_with_webhooks.py b/examples/onboarding_with_webhooks.py index 0611a55..5f8f7d0 100644 --- a/examples/onboarding_with_webhooks.py +++ b/examples/onboarding_with_webhooks.py @@ -36,7 +36,7 @@ def configure_webhooks(api_key: str, verbose: Optional[bool] = False) -> None: api_key="b0b905d6-228f-44bf-a130-c85d7aecd765", event_name="user_created", event_version="1", - algorithm="sha512", + algorithm="sha256", secret=str(secrets.token_hex(20)), ) webhooks_client.update_webhook(webhook_to_update).unwrap_or_raise() diff --git a/tests/test_integration_flows.py b/tests/test_integration_flows.py index 2bbaaa8..5e22cea 100644 --- a/tests/test_integration_flows.py +++ b/tests/test_integration_flows.py @@ -47,15 +47,14 @@ def do_complete_flow() -> Result[bool, Error]: device_info=DeviceInfo(device_platform="Android"), ).unwrap_or_return() - # default flow - _ = onboarding.retrieve_flow().unwrap_or_return() - flow_id = onboarding.create_flow( steps=[OnboardingSteps.SELFIE], default=True, name="alice-flow-test-onboarding-python", ).unwrap_or_return() + _ = onboarding.retrieve_flow().unwrap_or_return() + _ = onboarding.retrieve_flow(flow_id=flow_id).unwrap_or_return() _ = onboarding.update_flow( flow_id=flow_id,