ibm-cloud-sdk-core
Version:
Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.
54 lines (26 loc) • 910 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) > [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md) > [authenticate](./ibm-cloud-sdk-core.authenticatorinterface.authenticate.md)
## AuthenticatorInterface.authenticate() method
Add authentication information to the specified request.
**Signature:**
```typescript
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
requestOptions
</td><td>
AuthenticateOptions
</td><td>
The request to which authentication information is added (in the headers field).
</td></tr>
</tbody></table>
**Returns:**
Promise<void>