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

# redirectToTigerAuthentication()

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

Given authentication context and the authentication error, this implementation of `NotAuthenticatedHandler` will redirect current window to location where Tiger authentication flow will start.

**Signature:**

```typescript
export declare function redirectToTigerAuthentication(context: IAuthenticationContext, error: NotAuthenticated): void;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| context | [IAuthenticationContext](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iauthenticationcontext/index.md) | authentication context |
| error | [NotAuthenticated](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.notauthenticated/index.md) | not authenticated error, must contain the `authenticationFlow` information otherwise the handler just logs an error and does nothing |

**Returns:**

void

## Remarks

The location will be setup with correct return address so that when the flow finishes successfully, the browser window will be redirected from whence it came.

See also [createTigerAuthenticationUrl()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-tiger/sdk-backend-tiger.createtigerauthenticationurl/index.md); this function is used to construct the URL. You may use  it when build your own handler.
