Unidy Docs

Registration and account recovery

Connect sign-up, confirmation, invitation, and recovery journeys.

Registration and account recovery

Choose a registration path based on who creates the account and who renders the screens. For an existing account, use the recovery action that matches its state instead of starting another registration.

Choose a registration path

Your taskUseStart here
Let Unidy host sign-upThe brand's hosted login and registration journeyLogin and registration settings
Build registration in your applicationSDK registration operations, JavaScript components or React hooksSign-in and registration operations
Send hosted sign-up to another serviceThe brand's External signup URLLogin and registration settings
Create or invite one person from the dashboardThe administrator's create/invite workflowCreate or invite a user
Bring in existing customer recordsA planned import and invitation processImport users

Hosted registration

The hosted journey collects the email address, offers the brand's enabled login methods, and applies the configured registration questions and newsletter choices. Enter through the brand's login page; /users/register needs an email in the current journey and may return a direct visitor to login first.

Configure fields and available methods in Login and registration settings. Configure messages in Email templates and delivery.

An External signup URL redirects hosted registration entry points to the configured destination. It does not disable the SDK registration API or provision accounts in the external service. Define how that service creates or links Unidy accounts and how the person returns to sign-in.

Registration inside your application

SDK registration creates a temporary server-side flow identified by rid. Your application collects profile data and a login method, handles verification and any matching step, then finalizes the flow. Use the brand's host and an SDK client linked to that brand. Normal integrations should omit brand_id: creation accepts an override, but subsequent reads resolve the flow against the brand of the host you call.

The complete sequence, response fields, resume links, verification, passkeys and finalization outcomes are in Sign-in and registration operations. You can also use JavaScript SDK & Web Components or React SDK to build the screens.

Keep these boundaries in your UI:

  • Account creation and sign-in are distinct outcomes. Finalization returns authentication tokens only when the resulting account is confirmed. Otherwise, show the confirmation step instead of assuming the person is signed in.
  • Confirmation does not always mean clicking an email. A verified registration or trusted social registration can establish confirmation. A KYC journey may create an account with a synthetic address and require a separate real-email step before normal access.
  • Ordinary social sign-in is a separate flow. It does not populate an existing registration rid. Follow the registration-specific provider flow when registering through a social identity.
  • An address conflict can cross brands. Current email checks can reject a flow when an active registration for that address exists on another brand. Offer resume or support; do not promise independent registrations for the same address on each brand.

Registration flow retention

A flow has a nominal 15-day expiry, but scheduled cleanup removes flows older than 14 days, including finalized flows. Do not promise 15 days of resumability or retain a rid as a permanent account identifier. Handle both registration_expired and registration_not_found by offering a fresh start, and handle registration_already_processed by checking whether the person can now sign in.

Administrator-created accounts

Choose whether to send an invitation when creating the person. Creating or importing a record does not by itself establish that the person has a usable login method or received an email. Review the resulting account state and send the appropriate invitation or confirmation.

See Create or invite a user for the initial action and Account state and access for subsequent recovery.

Choose a recovery path

SituationNext actionGuide
The person forgot a passwordRequest password recovery and use the new link within its configured expiry. In a custom UI, supply an allowed return URL and handle the reset endpoint's responses.Magic code and password flows
The account is awaiting confirmationContinue or resend confirmation through the supported journey. An administrator can inspect the state and perform an authorized confirmation action.Account state and access
An invitation is pendingContinue or resend the invitation instead of treating the account as a normal password-reset case.Create or invite a user
Too many sign-in attempts caused a timed lockStop attempts and wait for the lock to expire, or have an authorized administrator inspect/reset it.Account state and access
An administrator locked the accountAsk an authorized administrator to review and remove the account lock when appropriate. Waiting does not remove this lock.Account state and access
Registration was interruptedResume the existing flow where available. If it has expired or been removed, start again and handle any existing-account result.Sign-in and registration operations
The person's only provider or device is unavailableOffer another enabled method already usable by that person. If none works, escalate to an administrator to establish a supported recovery path.Social login and passkeys

The SDK returns 401 account_locked for both timed failed-attempt locks and deliberate account locks, and the response may omit timing metadata. Do not infer the cause from the missing duration or automatically tell every locked person that an administrator must unlock them. See Authentication errors.

Password recovery and setting a first password depend on the configured journey and enabled methods. Do not offer a password-based fallback solely because a user lacks a password; verify that the brand supports that path. Link lifetimes and session effects are documented in Magic code and password flows.

Was this page helpful?