diff --git a/src/app/auth/http/http_oauth_token_interceptor.js b/src/app/auth/http/http_oauth_token_interceptor.js index 3621b094..59663987 100644 --- a/src/app/auth/http/http_oauth_token_interceptor.js +++ b/src/app/auth/http/http_oauth_token_interceptor.js @@ -19,7 +19,7 @@ * and reissued when needed. */ angular.module('sb.auth').factory('httpOAuthTokenInterceptor', - function (AccessToken, $injector, $q, $log) { + function (AccessToken, $injector, $q, $log, $window) { 'use strict'; @@ -90,6 +90,7 @@ angular.module('sb.auth').factory('httpOAuthTokenInterceptor', }, function () { AccessToken.clear(); + $window.location.reload(); } ).finally(function () { // Inject the token, whether or not it exists, back into the