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

# Function getOAuthHeader

- getOAuthHeader(headers): [AuthHeader](https://help.tableau.com/v0.0/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/v0.0/api/webdataconnector/en-us/reference/types/app.SecretsType.html)
        
        The headers containing access-token.
    
    #### Returns [AuthHeader](https://help.tableau.com/v0.0/api/webdataconnector/en-us/reference/types/app.AuthHeader.html)
    
    The authentication header.

### Settings

#### Member Visibility

- Inherited

#### Theme

OSLightDark

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