Use the wizard below to generate the code for your own unified login button. Simply place the code where you want the button to appear, (e.g. on your login or registration page).
If you would like to request additional scopes, drop us a line.
In addition to the settings above, you can also change the following:
HTML5 attribute | Type | Description |
---|---|---|
data-scopes |
string | A comma seperated string of desired scopes that you ask permission for. |
data-size |
string |
A value that will indicate what size the button will be rendered. The following sizes are supported: |
data-action |
string |
The type of button rendered. Choose |
data-onlogin |
function | A JavaScript function to trigger when the login process completed. The SDK will return the token object to this function. |
data-culturelanguage |
string | The language of the login window. Default is en-GB . |
The following example shows a login button and logs the response to the console.