Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Ionic Auth

$
0
0

@donsplash wrote:

I am trying to implement the new IONIC user and also try to persist Login and protect pages from unathorized view , Normally if i was not using Ionic Auth i would have just created and Auth Service and inject it in to the controller i want to use it. But with this i am a bit confused. can anyone help me on how to do this?
var user = Ionic.User.current();

	if (!user.isAuthenticated()) {
	  //
	$state.go('login');
	}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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