udpateProfile
This SDK is deprecated in favor of the Core and UI JS SDKs. See Migrating to the latest SDKs to use the latest Core and UI SDKs.
|
Support for the Legacy JS SDK ends on 28 February, 2021. |
reach5('udpateProfile', {
accessToken: string,
redirectUrl: string,
data: object,
callback: function,
// Optional parameters
fields: object,
})
Examples
reach5('updateProfile', {
accessToken: 'eyJ0eXAiOiJKV1QiL...',
redirectUrl: 'https://example-email-validate.com',
data: {
givenName: 'John',
familyName: 'Doe'
}
}, function(err, user) {
if (err) {
// Handle error
return;
}
// do something with user
});
Parameters
User’s access token. |
|||||||||||||||||||||||||||||||||||||||
The URL the user will be redirected to after clicking on the link contained in the email. This URL must be whitelisted in the |
|||||||||||||||||||||||||||||||||||||||
User profile data
|
|||||||||||||||||||||||||||||||||||||||
User’s fields to retrieve in the response. Defaults to id,name,email. |
|||||||||||||||||||||||||||||||||||||||
Event callback that was used with on. |