- Start with a map of the events your application sends and the actions it enforces.
- Keep your application account ID stable across providers.
- Test a returning customer, a shared network and an account with no device observation.
On this page
A returning customer signs in the morning after a migration. Your application still recognizes their account, but the new risk provider has never seen its browser identifier. If your policy treats every new identifier as a new person, that customer can lose access on rollout day. Start a Castle.io migration by deciding what history your application can carry forward.
Inventory the events that actually change access
Take one recent signup and one returning login from your own test account. Follow each from the browser through the server and into the policy that creates a session, asks for verification or holds a benefit. Castle documents recognized event types and which APIs accept them. Check your implementation against that list. A signup attempt, a successful signup and a failed login are different observations. Castle’s event reference.
| Existing identifier | Migration treatment |
|---|---|
| Application account ID | Preserve it on both integrations |
| Provider device ID | Keep its source and observation date |
| IP address | Use as time-scoped network evidence |
| Application event ID | Use it to reconcile paired observations |
Get a free API key
The Free plan includes 10,000 visitor checks a month with no card, and setup starts in watch mode, which logs every decision and blocks no one until you turn blocking on.
Rebuild device history with an overlap period
During the overlap, evaluate a small set of the same application events with both providers. Store the two outputs against the same event reference. This gives you an observation that two identifiers appeared during one event. Carry its date and source. An opaque identifier from the old provider has no guaranteed meaning in the new system.
For an employee who signs in on a home laptop and later on an office laptop, the common account ID explains why those two devices appear under one account. For two employees on the office Wi-Fi, the common IP explains the network overlap. Preserve both account records. If the account ID is missing, display the visit with the available evidence and let the next signed-in event supply the association.
Test the policy before cutting over
Exercise three cases with accounts you control. Sign in again from the same browser, switch browsers on the same network, then switch networks with the original browser. For each case, write down the evidence the investigator should see and the action the customer should experience. Add a fourth case where the device check is unavailable. Verify that missing data follows the intended fallback.
Move one policy at a time and retain a way to restore its previous behavior. Compare unexpected challenges for returning customers and the share of events missing an account ID. Those measures expose migration failures that a single average risk score can hide.
Give support a way to resolve missing history
Consider a customer who has used the same account for two years and opens the app on a new laptop the day after migration. The account creation date and verified email are still available. The new device history starts today. Give support both dates and the event that triggered any hold, so the customer can recover access without an agent having to guess which vendor’s device ID to trust.
Paste it in, then watch the verdicts
The public sk_test_sandbox key returns the documented allow, review and block shapes with no account, so the failure path is testable before you go live; SDKs for Node, Python and PHP, or plain HTTP. The Free plan includes 10,000 visitor checks a month with no card, and setup starts in watch mode, so nothing is blocked until you turn blocking on.



