Learn how to set up account recovery on your website frontend
loginIdField
parameter.
targetIdField
parameter.
onError
parameter.
onLogin
event to copy the data.token
object locally. The data.token
is the value generated by the getSessionByLoginId
endpoint and you should use it to set a user session or exchange it for a session token.
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.
If you would like to style this button, you can utilize the following CSS variables: