# redactedProviderError

**Kind:** Function

**Source:** [`atloria-monorepo/packages/ui-core/src/components/api-explorer/oauth2.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/ui-core/src/components/api-explorer/oauth2.ts#L632)

The provider's error, without anything that could be a credential.

`error` and `error_description` are the two RFC-defined fields; everything else in an error
body is provider-specific and could be anything, so nothing else is read.

## Signature

```ts
function redactedProviderError(payload: Record<string, unknown>): string
```

## Parameters

| Name | Type |
|---|---|
| `payload` | `Record<string, unknown>` |

**Returns:** `string`
