---
schema_version: "1"
id: 87c45bd7ef9e6aeb83c8a36fd6446590ec1d0177c7c63f6a18363dc7863e0bd3
title: getToken()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-dollara-gettoken.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-dollara-gettoken.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f8c26b75689bd1238254ff4c81a82c259007f03ec40b6e8d6d35fb7b859f6bb9
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# getToken()

Returns an application configuration token referenced by name. A tokens file is configured with the `tokens` attribute in the `<aura:application>` tag.

## Signature

`getToken (String token)`

## Parameters

**_token_:** Type: `String`. The name of the application configuration token to retrieve.

## Returns

**Type: `String`** application configuration token.

