Registration works with your existing user registration form to add new users or enroll new devices for existing users.Documentation Index
Fetch the complete documentation index at: https://docs.ownid.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
To get the most out of this guide, make sure to do the following tasks first:- Complete the backend integrations (see Build Server-Side Endpoints).
- Complete the Login integration (see Login).

The instructions on this page assume you have already installed and referenced the OwnID SDK at the top of your page as described in Steps 1 and 2 of Login.
Integrating Registration
Implement the event handler, and OwnID registration integration with references to the password and user id fields in your existing form.Add the Widget to your Registration Form
The SDK register method is used to integrate the registration journey. It references the fields in your existing registration form. It also renders the OwnId widget by automatically referencing your field Ids to calculate its position in the DOM. The sample registration forms in the snippets below are vanilla examples, shown here only to confirm the implementation pattern of form fields in SDK methods.Implement register Method
In the ownid method:- Enter “register” for the method name.
-
Assign the form field (as a DOM element) you use as the password to the
passwordFieldparameter. -
Assign the form field (as a DOM element) you use as the login id to the
loginIdFieldparameter. -
Set the
passwordFieldBindingparameter totrueif you want to force the OwnID platform to automatically create a random strong password. The value isfalseby default. -
Assign an error function as desired in the
onErrorparameter. -
Configure the
onRegisterevent to copy theownIdDataobject to a local variable. When submitting the registration form, you must send that object to your backend and store it in theownIdDatafield you created during Preparation.
Styling Options
The OwnID register widget can be styled in different ways to match your application’s design:Default Button

Standalone Button

button-wrapper-div represents the div where the button will be shown. Configure your own.
This creates a separate OwnID button that you can position anywhere in your login form.
OwnID changes the texts and icon according to the platform to ensure a higher click rate
- Finished State (Register)
That’s it!Your users can now register for a new account and leverage other user journeys you implement.Before going live make sure you check out the following the next steps.
Next Steps
Ready to deploy?
YES!
Take me to the Deployment Checklist
NOT YET...
I want to build another user journey