Skip to content

Commit

Permalink
chore: fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux committed Jan 28, 2022
1 parent fe319f5 commit 27aba59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sdk/src/platform/Platform-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe('RingCentral.platform.Platform', () => {
authentication();

await platform.login({
jwt: 'foo'
jwt: 'foo',
});

expect((await platform.auth().data()).access_token).to.equal('ACCESS_TOKEN');
Expand All @@ -111,7 +111,7 @@ describe('RingCentral.platform.Platform', () => {
await platform.login({
username: 'foo',
password: 'foo',
extension: 'foo'
extension: 'foo',
});

expect((await platform.auth().data()).access_token).to.equal('ACCESS_TOKEN');
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/platform/Platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export default class Platform extends EventEmitter {
password,
extension = '',
code,
jwt,
jwt,
access_token_ttl,
refresh_token_ttl,
access_token,
Expand Down Expand Up @@ -463,7 +463,7 @@ export default class Platform extends EventEmitter {
body.password = password;
} else if (jwt) {
body.grant_type = 'urn:ietf:params:oauth:grant-type:jwt-bearer';
body.assertion = jwt;
body.assertion = jwt;
} else if (code) {
//@see https://developers.ringcentral.com/legacy-api-reference/index.html#!#RefAuthorizationCodeFlow
body.grant_type = 'authorization_code';
Expand Down

0 comments on commit 27aba59

Please sign in to comment.