How can you implement a Facebook logout that also log’s the person out of the OAuth provider?
I am currently using AngularFire’s $authWithOAuthPopup method.
The main functionality wanted is the ability for someone else to login to the app. I’m surprised there aren’t more questions around this on the web. What are possible work arounds, or methods?
Current behavior: Log user out > click login > uses previous FB session’s information to login.
Wanted behavior: Log user out > click login > asks for user’s FB credentials > login.
$scope.logout = function () {
delete $localStorage.storageAuth;
Auth.$unauth();
$state.go('user.signin');
};
can we see the login/auth code… what are you doing with$localStorage.storageAuth you really shouldn’t need it for firebase since it will manage the the user’s login state for you… I believe…
but you can try and clear the cookies/session information
// _blank loads in background, might need clearsessioncache
var ref = window.open(url, '_blank', 'location=no,toolbar=no,clearcache=yes');
// attach a listener to the window which closes it when complete
ref.addEventListener('loadstop', function(event) {
ref.close();
});