<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [TokenManager](./ibm-cloud-sdk-core.tokenmanager.md) &gt; [getToken](./ibm-cloud-sdk-core.tokenmanager.gettoken.md)

## TokenManager.getToken() method

Retrieves a new token using "requestToken()" if there is not a currently stored token from a previous call, or the previous token has expired.

**Signature:**

```typescript
getToken(): Promise<any>;
```
**Returns:**

Promise&lt;any&gt;

