When the customer is authenticated with a JWT token in your application, You can retrieve or update customer details by using the methods listed below.
Profile management methods
Get 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.
|React Native||Synerise.Client.getAccount(onSuccess, onError)|
Update customer account details
You can use this method to let customers update their own information, except for the email address, which can be changed with a separate method.
|React Native||Synerise.Client.updateAccount(context, onSuccess, onError)|
Change 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: