Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Facebook Logout with Firebase & Ionic - Clear OAuth session so new user can login

$
0
0

@njho wrote:

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');
};

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>