Profile management
When the customer is authenticated with a JWT token in your application, You can retrieve or update customer details by using the SDK methods. These methods can be used only by recognized profiles, except updating a customer account’s basic information, which can be used for anonymous profile too.
Profile management methods
Get a customer account details
You can use this method to retrieve all information about a customer from Synerise. You can then present that information in the app.
OS | Method |
---|---|
Android | Client.getAccount() |
iOS | Client.getAccount(success:failure:) |
React Native | Synerise.Client.getAccount(onSuccess, onError) |
Flutter | Synerise.client.getAccount() |
Update a customer account’s basic information
You can use this method to let customers update their own basic information, except for updating identifiers: uuid
, customId
, email
.
Update a customer account’s details
You can use this method to let customers update their own information, including updating identifiers: uuid
, customId
, email
.
OS | Method |
---|---|
Android | Client.updateAccount(accountInformation) |
iOS | Client.updateAccount(context:success:failure:) |
React Native | Synerise.Client.updateAccount(context, onSuccess, onError) |
Flutter | Synerise.client.updateAccount(context) |
Change a customer’s password
Separately from customer information updates, a customer may want to change their password. The default password policy is:
- Minimum 6 characters
- At least one uppercase letter
- At least one lowercase letter
- At least one digit
- At least one non-alphanumeric character
Passwords are PBKDF2-encrypted.
app.synerise.com
). You can find more information about it here.This method allows a customer to change their password, but they must provide their current password first.
Request and confirm email change
These methods allow customers request and confirm the change of their email address.
Request and confirm phone number change
These methods allow customers to request and confirm the change of their phone number.
Remove a customer
To allow a customer to remove their account, implement the following method: