Skip to main content
Device registration protects your users from account takeovers by requiring verification when they sign in from an unrecognized device. For a general overview of the feature, see Device Registration.

Prerequisites

  • DynamicSDK initialized with your environment ID (see Quickstart)
  • Device registration enabled in your environment’s settings in the Dynamic Dashboard
  • App Links configured for your app to handle email verification redirects

Using our UI

Device registration is handled automatically by the SDK. When a user signs in from an unrecognized device, the SDK displays a security prompt with the user’s email, asking them to verify the device. Once the user taps the verification link in their email, the SDK detects the deep link, completes registration, and dismisses the prompt automatically. No additional code is needed — just enable device registration in your dashboard.

Using your UI

Checking if device registration is required

The DeviceRegistrationModule provides a reactive isDeviceRegistrationRequired property and a StateFlow that updates when the SDK detects an unrecognized device during authentication.
In a Composable:

Getting registered devices

Retrieve all trusted devices for the current user. Each device is returned as a JsonObject with the following fields:

Revoking a device

Remove a single trusted device. If the revoked device is the current device, the user will be logged out.

Revoking all devices

Remove all trusted devices for the current user. This always logs the user out.

Full example

Here’s a complete Jetpack Compose screen for managing trusted devices:
Last modified on May 12, 2026