Why is user_id None for Apple Health in the widget?
SDK-based providers (Apple Health, Samsung Health, Health Connect) cannot complete a connection through the web widget alone, which is why the widget returns a…
SDK-based providers (Apple Health, Samsung Health, Health Connect) cannot complete a connection through the web widget alone, which is why the widget returns a null user_id for them. The user is only created on-device when initConnection runs. Apple Health has no web API and cannot be connected from a pure web app.
The unified pattern:
Set auth_success_redirect_url to a deep link or universal link into your app.
When the redirect's resource indicates an SDK provider, call initConnection (iOS / Flutter / React Native SDK) to prompt HealthKit permissions and finish the link.
API providers connect fully in the widget.
Data then flows to your webhooks and API as usual.
These providers appear in the widget because they are enabled in your dashboard. There is no self-serve setting to hide them, so to avoid showing them, split users into separate web vs mobile connection paths and present only platform-appropriate providers. See customising authentication redirects for the redirect setup.
Last updated
Was this helpful?