Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.logout = function() {
- Auth.$unauth();
- $scope.authData = null;
- $window.location.reload(true);
- };
- Auth.$onAuth(function(authData) {
- if (authData === null) {
- console.log("Not logged in yet");
- } else {
- console.log("Logged in as", authData.uid);
- }
- $scope.authData = authData; // This will display the user's name in our view
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement