Generate device token (Sumsub)
Generates a Sumsub Device Intelligence token to initialize the fisherman SDK client-side.
Vue d’ensemble
Objectif
This helper produces the token used by @sumsub/fisherman to capture device signals.
The same session_id must be preserved across the token, client collection, and sumsub.evaluate_platform_event or sumsub.evaluate_transaction.
Quand l’utiliser
- Before a login, signup, password reset, or 2FA reset assessed by Sumsub.
- Before a financial transaction enriched with Device Intelligence.
Parameters 3
extension_config_id
Active Sumsub provider configuration.
event_type
Event type used to generate the Device Intelligence token.
session_id
Device session identifier. When absent, Ormuz generates one from the process and node.
Outputs 2
access_token
Token to pass to the fisherman SDK.
session_id
Device session to reuse for assessment.
Behavior
Generate the token
The helper calls the Sumsub Device Intelligence endpoint with sessionId and userPlatformEventType.
Collect client-side
The frontend initializes fisherman with the token, then calls fingerprint().
Process example
This helper makes no decision; it only prepares Device Intelligence collection.