"No Credentials were Previously Set" Error with Android SDK

Overview

The following error has been appearing in Auth0 applications:

No Credentials were previously set.

Cause

This error is thrown when there is no valid credentials stored in the CredentialsManager. See this SDK to find where this error might be.

Solution

In the implementation, it is recommended to use hasValidCredentials before calling the getCredentials method.

NOTE: A call to clearCredentials and, afterward, to getCredentials would also reproduce this particular error.