Skip to content

Commit 0ac4ae8

Browse files
committed
Make linter happy
1 parent e448314 commit 0ac4ae8

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

projects/lib/src/oauth-service.ts

+10-11
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
12641264
}
12651265

12661266
return url;
1267-
1267+
12681268
}
12691269

12701270
initImplicitFlowInternal(
@@ -1374,8 +1374,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
13741374
public tryLogin(options: LoginOptions = null): Promise<boolean> {
13751375
if (this.config.responseType === 'code') {
13761376
return this.tryLoginCodeFlow().then(_ => true);
1377-
}
1378-
else {
1377+
} else {
13791378
return this.tryLoginImplicitFlow(options);
13801379
}
13811380
}
@@ -1504,32 +1503,32 @@ export class OAuthService extends AuthConfig implements OnDestroy {
15041503
(tokenResponse) => {
15051504
this.debug('refresh tokenResponse', tokenResponse);
15061505
this.storeAccessTokenResponse(
1507-
tokenResponse.access_token,
1508-
tokenResponse.refresh_token,
1506+
tokenResponse.access_token,
1507+
tokenResponse.refresh_token,
15091508
tokenResponse.expires_in,
15101509
tokenResponse.scope);
15111510

15121511
if (this.oidc && tokenResponse.id_token) {
1513-
this.processIdToken(tokenResponse.id_token, tokenResponse.access_token).
1512+
this.processIdToken(tokenResponse.id_token, tokenResponse.access_token).
15141513
then(result => {
15151514
this.storeIdToken(result);
1516-
1515+
15171516
this.eventsSubject.next(new OAuthSuccessEvent('token_received'));
15181517
this.eventsSubject.next(new OAuthSuccessEvent('token_refreshed'));
1519-
1518+
15201519
resolve(tokenResponse);
15211520
})
15221521
.catch(reason => {
15231522
this.eventsSubject.next(new OAuthErrorEvent('token_validation_error', reason));
15241523
console.error('Error validating tokens');
15251524
console.error(reason);
1526-
1525+
15271526
reject(reason);
15281527
});
15291528
} else {
15301529
this.eventsSubject.next(new OAuthSuccessEvent('token_received'));
15311530
this.eventsSubject.next(new OAuthSuccessEvent('token_refreshed'));
1532-
1531+
15331532
resolve(tokenResponse);
15341533
}
15351534
},
@@ -1689,7 +1688,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
16891688
): boolean {
16901689
const savedNonce = this._storage.getItem('nonce');
16911690
if (savedNonce !== nonceInState) {
1692-
1691+
16931692
const err = 'Validating access_token failed, wrong state/nonce.';
16941693
console.error(err, savedNonce, nonceInState);
16951694
return false;

0 commit comments

Comments
 (0)