getCredentials method

List<ArcGISCredential> getCredentials()

Returns an array of unique credentials contained in the ArcGISCredentialStore.

During a logout workflow, users should call this method before calling ArcGISCredentialStore.removeAll, filter all instances of OAuthUserCredential and invalidate them by calling OAuthUserCredential.revokeToken.

Return Value: Every ArcGISCredential within the ArcGISCredentialStore.

Implementation

List<ArcGISCredential> getCredentials() {
  final arrayHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ArcGISCredentialStore_getCredentials(
        _handle, errorHandler);
  });
  return arrayHandle.toList();
}