Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [3.3.1](v3.3.0...v3.3.1) (2024-05-17) ### Features * An `AuthorizationManager` instance can now be provided as a `SDKOption`; This allows auto-configuration of Authorization headers for requests made using the SDK. - **Removes `getTokenForScope` method.** This method has been deprecated since the release of `3.0.0` and with the new Authorization manager should no longer be used. - The shared `serviceRequest` method has been updated to retrieve tokens from an `AuthorizationManager`, when passed via `SDKOptions` This change will allow calls like: ```ts const manager = sdk.authorization.create({ ..., scopes: 'transfer...' }); sdk.transfer.endpointSearch({...}, { manager }); ``` Rather than: ```ts const manager = sdk.authorization.create({ ..., scopes: 'transfer...' }); sdk.transfer.endpointSearch({ headers: { Authorization: `Bearer ${manager.tokens.transfer.access_token}` } }; ``` ### Bug Fixes * **ESM:** addresses missing file extension in generated ESM build ([#177](#177)) ([69fe19c](69fe19c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information