/// <summary>
/// A helper function to get the identity id of the dataset from credentials
/// provider. If the identity id is null, UNKNOWN_IDENTITY_ID will be
/// returned.
/// </summary>
/// <returns>The identity identifier.</returns>
/// <param name="provider">Provider.</param>
public static string GetIdentityId(CognitoAWSCredentials credentials)
{
return string.IsNullOrEmpty(credentials.GetCachedIdentityId())
? UNKNOWN_IDENTITY_ID
: credentials.GetCachedIdentityId();
}