Skip to content

Commit 87ea7ec

Browse files
Merge pull request #445 from piotrsapiejewskismartbear/master
SDCB-10270 Update path for SBID
2 parents dde8157 + 6859f88 commit 87ea7ec

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitbar/cloud-api-client",
3-
"version": "1.0.21",
3+
"version": "1.0.22",
44
"description": "Bitbar Cloud API Client for JavaScript",
55
"main": "dist/bitbar-cloud-api-client.min.js",
66
"types": "dist/index.d.ts",

src/api/APIResourceUserSession.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('APIResourceUserSession', () => {
6666
it('should return redirect URL for SBID login callback', () => {
6767
const url = service.sbidCallbackUrl();
6868

69-
expect(url).toEqual(`${cloudUrl}/api${baseUrl}/sbid/callback`);
69+
expect(url).toEqual(`${cloudUrl}/api${baseUrl}/oauth/authorize/sbid-login`);
7070
});
7171
});
7272
});

src/api/APIResourceUserSession.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ export class APIResourceUserSession extends APIResource {
3131
return new APIResource(this).push('portal-login').post();
3232
}
3333

34-
// /user-sessions/sbid/callback
34+
// /user-sessions/oauth/authorize/sbid-login
3535
sbidCallbackUrl() {
36-
return new APIResource(this).push('sbid', 'callback').toUrl(true);
36+
return new APIResource(this).push('oauth', 'authorize', 'sbid-login').toUrl(true);
3737
}
3838

3939
}

0 commit comments

Comments
 (0)