Skip to content

Commit b9dc043

Browse files
committed
fix(continue): rename param to "continue" as intended
1 parent d5e286f commit b9dc043

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/__tests__/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('LinkSDK', () => {
7777
continueTo: value
7878
});
7979

80-
expect(mockValue.params.continueTo).toBe(value);
80+
expect(mockValue.params.continue).toBe(value);
8181
});
8282

8383
test('responseType', async () => {

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface IConfig {
1616
export interface IParams {
1717
client_id: string;
1818
locale?: string;
19-
continueTo?: string;
19+
continue?: string;
2020
}
2121

2222
export interface IOauthParams {
@@ -73,14 +73,14 @@ class LinkSDK {
7373
this.params = {
7474
client_id: clientId,
7575
locale,
76-
continueTo
76+
continue: continueTo
7777
};
7878

7979
this.oauthParams = {
8080
client_id: clientId,
8181
redirect_uri: redirectUri,
8282
response_type: responseType,
83-
scope: scope.length ? scope.join(' ') : undefined,
83+
scope: scope.join(' ') || undefined,
8484
state
8585
};
8686

0 commit comments

Comments
 (0)