ibm-cloud-sdk-core
Version:
Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.
18 lines (10 loc) • 564 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [TokenManager](./ibm-cloud-sdk-core.tokenmanager.md) > [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<any>