Permalink
Browse files

fix(authService): storageEventHandler change

  • Loading branch information...
bondib committed Mar 23, 2017
1 parent 573fb8f commit 01d3662ebe4d62096cd43bbd6af063796df25f90
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/authService.js
@@ -85,6 +85,16 @@ export class AuthService {
return;
}
// in case auto refresh tokens are enabled
if(this.config.autoUpdateToken
&& this.authentication.getAccessToken()
&& this.authentication.getRefreshToken())
{
// we just need to check the status of the updated token we have in storage
this.authentication.updateAuthenticated();
return;
}
logger.info('Stored token changed event');
// IE runs the event handler before updating the storage value. Update it now.

0 comments on commit 01d3662

Please sign in to comment.