UNPKG

ibm-cloud-sdk-core

Version:

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

55 lines (26 loc) 927 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; [(constructor)](./ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md) ## BearerTokenAuthenticator.(constructor) Create a new BearerTokenAuthenticator instance. **Signature:** ```typescript constructor(options: Options); ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> options </td><td> Options </td><td> Configuration options for bearer authentication. This should be an object containing the "bearerToken" field. </td></tr> </tbody></table> ## Exceptions Error: the options.bearerToken field is not valid, or unspecified