question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

$firebaseAuth.$signOut should return a promise

See original GitHub issue

Sign out method should return a promise similar to the normal js library method firebase.auth().signOut()

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
katowulfcommented, Jun 3, 2016

Looks like the API document is incorrect here. signOut() is a synchronous method and returns no value. I put in a bug to fix this in the docs, but AngularFire is behaving correctly in this case.

1reaction
jwngrcommented, Jun 8, 2016

Proof that $signOut() is in fact a promise: https://plnkr.co/edit/ZPFtJMSEpPZKXv5vwn38

Read more comments on GitHub >

github_iconTop Results From Across the Web

Signout with Firebase 5.6.0 - Stack Overflow
According to the documentation, I just use auth().signOut() and it just returns a void promise. By the way, calling this function doesn't ...
Read more >
Authentication State Persistence | Firebase - Google
This will return a promise that will resolve once the state finishes copying from one type of storage to the other. Calling a...
Read more >
Firebase Authentication - LearnHowToProgram.com
The firebase.auth().createUserWithEmailAndPassword() method takes two arguments: an email and password. It returns a promise, which means we can attach then to ...
Read more >
Building Applications Using Firebase, Part 2: Authentication
Create a Firebase auth user with a given email and password ... The promise will resolve a firebase user object with all the...
Read more >
Sign Up, Login & Logout Users with Firebase Authentication
This is an asynchronous operation that returns a Promise, so let's tag on a .then() , which takes a callback function (for our...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found