If One Tap sign-in meets your needs, consider using it instead. One Tap has an updated user experience and other improvements.

Delete stored credentials

Stay organized with collections Save and categorize content based on your preferences.

Delete credentials from Smart Lock when either of the following circumstances occur:

  • Signing in with the credentials fails because the account no longer exists or the password is incorrect.
  • The user completes the app's account deletion flow.

To delete credentials, call CredentialsClient.delete():

        new OnCompleteListener<Void>() {
            public void onComplete(@NonNull Task<Void> task) {
                if (task.isSuccessful()) {
                    // Credential deletion succeeded.
                    // ...