UNPKG

ibm-cloud-sdk-core

Version:

Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.

54 lines (26 loc) 846 B
<!-- 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; [BearerTokenAuthenticator](./ibm-cloud-sdk-core.bearertokenauthenticator.md) &gt; [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