Sync accounts (Android)

Use syncAccounts on the SecureAuthService class to update end user device capabilities on the SecureAuth Identity Platform. When you sync accounts, the Mobile SDK checks if device biometric (fingerprint-only for Android) is enabled; if enabled, biometric capabilities are refreshed on the Identity Platform, so they are in sync with the Mobile SDK.

Optionally, add the following code in the application class so that the syncAccounts call runs when you start your application. This keeps accounts on your local device synced with the account information on the Identity Platform.

...
//Syncs every account on your SecureAuth SDK when necessary 
SecureAuthService.syncAccounts(context)
// Refreshes account information for a single account inside the SDK
SecureAuthService.refreshAccount(context)
// Deletes a remote account on Identity Platform, unless not found, then deletes the local account.
SecureAuthServices.deleteAccount()
...