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
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 that updates when the SDK detects an unrecognized device during authentication.
Getting registered devices
Retrieve all trusted devices for the current user. Each device includes metadata for display.
Each device includes:
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 SwiftUI screen for managing trusted devices:
Last modified on September 21, 2026