-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improves error message for $firebaseAuth initialization and updates migration guide #750
Conversation
@AbeHaskins - I made a commit on top of yours with some cleanup. Please bump googlebot and then merge if you're happy with it. I'll resolve merge conflicts in #748 once this gets merged in. |
| `$authWithCustomToken(token)` | `$signInWithCustomToken(token)` | | | ||
| `$authWithOAuthPopup(provider[, options])` | `$signInWithPopup(provider)` | `options` can be provided by passing a configured `firebase.database.AuthProvider` instead of a `provider` string | | ||
| `$authWithOAuthRedirect(provider[, options])` | `$signInWithRedirect(provider)` | `options` can be provided by passing a configured `firebase.database.AuthProvider` instead of a `provider` string | | ||
| `$authWithOAuthToken(provider, token)` | `$signInWithCredential(credential)` | Tokens must now be transformed into provider specific credentials. This is discussed more in the [Firebase Authentication docs](https://firebase.google.com/docs/auth/#key_functions). | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the Firebase Authentication guide.
@AbeHaskins a couple nitpicks. |
@@ -24,21 +24,36 @@ for details on how to upgrade to the Firebase `3.x.x` SDK. | |||
|
|||
## `$firebaseAuth` Method Renames / Signature Changes | |||
|
|||
The `$firebaseAuth` service now accepts an optional Firebase `auth` instance instead of a Firebase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accepts a firebase.auth.Auth
instance instead of a firebase.database.Database
instance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather use natural language here since firebase.auth.Auth
doesn't mean much to anyone since the API doesn't look like that. Maybe we can say firebase.auth()
instance though?
Description
Fixes issues #743 and #749