Integrate OwnID into your screensets in minutes
appId
automatically. Use that appId
in OwnID SDK interaction from your website’s front end.
appId
of your OwnID application. To find this appId
, open the OwnID application in the OwnID Console and go to the My App tab.onError
function of the OwnID login widget. The most common scenarios include:
passwordToggle
attribute.
passwordToggle
- If your password field includes an option to hide/show the password (typically an eye icon), then the OwnID SDK must know the DOM element of the icon so it can adjust the OwnID widget accordingly. For example, the following key/value pair sets the passwordToggle
parameter to a String that specifies the DOM element of the hide/show icon:screensetsConfig
- If your CDC implementation includes Screen-Sets with custom IDs, you must initialize the OwnID SDK with the custom IDs of the login and registration Screen-Sets. CDC implementations that use the default Screen-Set IDs can ignore this parameter. As an example, the following key/value pair passes the custom IDs of the login and registration Screen-Sets to the OwnID SDK:onRegister
parameter to invoke a function that leverages the gtag
of Google Analytics when a user registers:
onRegister
- Defines a custom function that is called just after OwnID registers a new user.onLogin
- Defines a custom function that is called just after OwnID has logged in the user.onBeforeLogin
- Defines a custom function that is called just before OwnID logs in the user.onBeforeLinkOnLogin
- Defines a custom function that is called when an existing CDC user with a traditional password completes the process of setting up OwnID for the first time.onMagicLinkLogin
- Defines a custom function that is called just after the user logs in with a Magic Link. With Magic Link, users who are using a desktop without their phone available have the option of receiving an email that contains a one-time link. Without this parameter, the onLogin
function is called after the user logs in with a Magic Link.