> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/faq/help-topics/data-api-sdk/mobile-sdk-setup-permissions-and-crashes/samsung-init-errors-token-devmode.md).

# Why does Samsung initConnection return invalid session token?

An invalid-session-token error on `initConnection` almost always means the SDK was initialised with a different dev ID from the one used to generate the auth token.

**Make sure init and your `generateAuthToken` call use the same dev ID**, and pass the raw token exactly as returned by the endpoint.

A generic `Unknown Error` on Samsung permission requests usually means Samsung Health Developer Mode is not enabled on the test device. To fix it:

{% stepper %}
{% step %}
Open Samsung Health > Settings > About Samsung Health.
{% endstep %}

{% step %}
Tap the version number repeatedly to enable Developer Mode.
{% endstep %}

{% step %}
Confirm Samsung Health is fully updated.
{% endstep %}

{% step %}
Confirm your app package name matches what is registered in the Samsung Developer Portal.
{% endstep %}
{% endstepper %}

If it persists, capture Logcat filtered on the Samsung store manager tag for the precise error.
