Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Changelog

## [1.6.3] - 2025-05-20b

### Added

- Added `rawAccessToken` getter to `BackendClient`

## [1.6.2] - 2025-05-20a

### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pipedream/sdk",
"type": "module",
"version": "1.6.2",
"version": "1.6.3",
"description": "Pipedream SDK",
"main": "./dist/server.js",
"module": "./dist/server.js",
Expand Down
13 changes: 13 additions & 0 deletions packages/sdk/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,19 @@ export class BackendClient extends BaseClient {
}
}

/**
* Returns the raw access token string or a promise resolving to it.
* This can be used when you need the token directly without Authorization header formatting.
*
* @returns A string or promise resolving to the access token.
*/
public rawAccessToken(): string | Promise<string> {
if (this.staticAccessToken) {
return this.staticAccessToken;
}
return this.ensureValidOauthAccessToken();
}

protected authHeaders(): string | Promise<string> {
if (this.staticAccessToken) {
return `Bearer ${this.staticAccessToken}`;
Expand Down
6 changes: 2 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading