> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# NotAuthenticated

- Package: [@gooddata/sdk-backend-spi](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/index.md)
- Kind: class
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-backend-spi/src/errors/index.ts
- Guides: [Renew the session without a redirect](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/renew-session-silently/index.md)

This exception is thrown when client code triggers an operation which requires authentication but the client code did not provide credentials or the credentials are invalid.

**Signature:**

```typescript
export declare class NotAuthenticated extends AnalyticalBackendError 
```
**Extends:** [AnalyticalBackendError](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.analyticalbackenderror/index.md)

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [authenticationFlow?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.notauthenticated/index.md#notauthenticatedauthenticationflow) |  | [AuthenticationFlow](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.authenticationflow/index.md) | _(Optional)_ |
| [reason?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.notauthenticated/index.md#notauthenticatedreason) |  | [NotAuthenticatedReason](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.notauthenticatedreason/index.md) | _(Optional)_ More detailed reason of the NotAuthenticated error. See [NotAuthenticatedReason](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.notauthenticatedreason/index.md) for more information. |

## Property details

### NotAuthenticated.authenticationFlow

**Signature:**

```typescript
authenticationFlow?: AuthenticationFlow;
```

### NotAuthenticated.reason

More detailed reason of the NotAuthenticated error. See [NotAuthenticatedReason](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.notauthenticatedreason/index.md) for more information.

**Signature:**

```typescript
reason?: NotAuthenticatedReason;
```

#### Remarks

MAY be undefined if the particular backend implementation does not provide this value.
