showSocialAccounts
Description
Show the widget allowing the current profile to manage the social logins linked to his account.
Examples
const accessToken = // Here paste the authorization token of the profile retrieved after login
client.showSocialAccounts({
container: 'social-accounts-container',
accessToken,
providers: ['facebook', 'google'],
auth: {
redirectUri: 'https://example.com/auth-callback'
},
theme: {
primaryColor: '#274890',
borderRadius: '25',
socialButton: {
inline: true
}
},
i18n: {
'socialAccounts.linkNewAccount': 'Link a new account'
}
})
Parameters
The DOM element or the |
|||||||||||||||||||||||||||||||||
The profile’s access token. |
|||||||||||||||||||||||||||||||||
List of the available social providers. Defaults to all configured providers in your account settings. You can also specify variants for a provider as a key:value pair:
|
|||||||||||||||||||||||||||||||||
List of authentication options
|
|||||||||||||||||||||||||||||||||
Callback function called after the widget has been successfully loaded and rendered inside the container. The callback is called with the widget instance. |
|||||||||||||||||||||||||||||||||
The options to set up to customize the appearance of the widget. Below is an example of some of the theme attributes. For a full list, see theme attributes.
|
|||||||||||||||||||||||||||||||||
Widget labels and error messages to override. Falls back to the default wordings in
|
theme
attributes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|