Reverted $window.sessionStorage.setItem('token', UserData.token) -> $window.sessionStorage.token = userData.token.