---
schema_version: "1"
id: aeb58ea1142f4d359ee2f94834911722ede649656fdf96e611a4219a58f86c86
title: getOAuthHeader | @tableau/taco-toolkit - v2.1.0
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/webdataconnector/reference/functions/app.getOAuthHeader.md
canonical_url: https://help.tableau.com/current/api/webdataconnector/en-us/reference/functions/app.getOAuthHeader.html
source_site: help.tableau.com
content_type: documentation
content_hash: 14fdd68dbfea981aa897bc8f01aa02b4e41924bd9e49330c5ffb364d37650ddb
description: Documentation for @tableau/taco-toolkit
---
- [@tableau/taco-toolkit](https://help.tableau.com/current/api/webdataconnector/en-us/reference/index.html)
- [app](https://help.tableau.com/current/api/webdataconnector/en-us/reference/modules/app.html)
- [getOAuthHeader](https://help.tableau.com/current/api/webdataconnector/en-us/reference/functions/app.getOAuthHeader.html)

# Function getOAuthHeader

- getOAuthHeader(headers): [AuthHeader](https://help.tableau.com/current/api/webdataconnector/en-us/reference/types/app.AuthHeader.html)[](#getOAuthHeader)
- Generates an OAuth authentication header based on the provided secrets. If no access token is provided in the secrets, an empty object is returned.
    
    #### Parameters
    
    - ##### headers: undefined | [SecretsType](https://help.tableau.com/current/api/webdataconnector/en-us/reference/types/app.SecretsType.html)
        
        The headers containing access-token.
    
    #### Returns [AuthHeader](https://help.tableau.com/current/api/webdataconnector/en-us/reference/types/app.AuthHeader.html)
    
    The authentication header.

### Settings

#### Member Visibility

- Inherited

#### Theme

OSLightDark

Generated using [TypeDoc](https://typedoc.org/)