electangular icon indicating copy to clipboard operation
electangular copied to clipboard

What is the API to clear the session in electangular

Open gopi1989 opened this issue 8 years ago • 1 comments

Hi ,

I am developing application in angularJs and convert it into client application by using electron packager.All the functionalities working fine except the session clear while i do logout. I am using Shibboleth for authentication. I injected the 'electangular' dependency in app.js My code:

angular.module('wepaUI')
  .directive('wepaHeader', function () {
    return {
      restrict: 'A',
      replace: true,
      templateUrl: 'header/header.html',
      scope: {},
      controller: function ($scope, $location, session, electron) {
        $scope.isAuthenticated = function () {
          return session.isAuthenticated()
        }

        $scope.signOut = function () {
          session.destroy()
          electron.clearStorageData([] , function(data) {
          console.log(data)
           })
          $location.path('/login')
        }
      }
    }
  })

I am using clearStorageData() API to clear the shibboleth session. I am getting error like: clearStorageData() is not defined .It is the rightway to clear the session? Please help me out from this issue

gopi1989 avatar Jun 28 '16 11:06 gopi1989

I'll take a look. Thanks for reporting.

develephant avatar Jul 30 '16 00:07 develephant