File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -350,15 +350,13 @@ describe('Accounts', () => {
350
350
} ) ;
351
351
const oldTokens = {
352
352
accessToken,
353
- refreshToken
353
+ refreshToken,
354
354
} ;
355
355
Accounts . instance . storeTokens ( oldTokens ) ;
356
356
// tslint:disable-next-line no-string-literal
357
357
Accounts . instance [ 'store' ] . dispatch ( setTokens ( oldTokens ) ) ;
358
358
await Accounts . refreshSession ( ) ;
359
- expect ( localStorage . getItem ( 'accounts:accessToken' ) ) . toEqual (
360
- accessToken
361
- ) ;
359
+ expect ( localStorage . getItem ( 'accounts:accessToken' ) ) . toEqual ( accessToken ) ;
362
360
expect ( localStorage . getItem ( 'accounts:refreshToken' ) ) . toEqual (
363
361
refreshToken
364
362
) ;
@@ -374,7 +372,7 @@ describe('Accounts', () => {
374
372
} ) ;
375
373
const oldTokens = {
376
374
accessToken,
377
- refreshToken
375
+ refreshToken,
378
376
} ;
379
377
Accounts . instance . storeTokens ( oldTokens ) ;
380
378
// tslint:disable-next-line no-string-literal
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ export class AccountsClient {
266
266
await this . storeTokens ( refreshedSession . tokens ) ;
267
267
this . store . dispatch ( setTokens ( refreshedSession . tokens ) ) ;
268
268
} else if ( decodedRefreshToken . exp < currentTime ) {
269
- // Refresh token is expired, user must sign back in
269
+ // Refresh token is expired, user must sign back in
270
270
this . clearTokens ( ) ;
271
271
}
272
272
this . store . dispatch ( loggingIn ( false ) ) ;
You can’t perform that action at this time.
0 commit comments