ibm-cloud-sdk-core
Version:
Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.
54 lines (26 loc) • 846 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) > [BearerTokenAuthenticator](./ibm-cloud-sdk-core.bearertokenauthenticator.md) > [setBearerToken](./ibm-cloud-sdk-core.bearertokenauthenticator.setbearertoken.md)
## BearerTokenAuthenticator.setBearerToken() method
Set a new bearer token to be sent in subsequent requests.
**Signature:**
```typescript
setBearerToken(bearerToken: string): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
bearerToken
</td><td>
string
</td><td>
The bearer token that will be sent in service requests.
</td></tr>
</tbody></table>
**Returns:**
void