Configuration
Here are some properties you can pass to the widget:
Property | Description |
---|---|
mode | Specifies whether it is |
project-id | Your project ID |
copy | Overrides default copy |
User's email | |
email-input-id | Id of an input the widget needs to get email value from |
text | Text for the widget button |
hide-success-screens | Boolean showing or hiding success screens after registration flow completed |
type | If |
kind | Button look |
rank | Button look |
size | Button look |
button-only | Hides the widget button container |
button-class | Class string applied to the widget button |
container-class | Class string applied to the button container, omitted if |
button-ref | Ref of the widget button html element |
container-ref | Ref of the widget button container html element, omitted if |
lang | Widget will automatically read language value from |
You can also pass following callbacks (See Examples):
Callback | Description |
---|---|
onValidate | Callback that allows authentication process if returned true |
onSuccess | Called when authentication has been successful, gets tokenId as argument, can be used for redirection |
onFail | Called when authentication fails and gets an error as an argument, can be used for redirection |
Last updated