-
Notifications
You must be signed in to change notification settings - Fork 625
Updated $signInWithPopup() and $signInWithRedirect() docs #896
Conversation
katowulf
left a comment
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.
Looks good. Two little nitpicks to consider. I'll mark this lgtm as I'm not sure they're actionable.
docs/reference.md
Outdated
| Authenticates the client using a credential (potentially created from OAuth Tokens). This function takes one | ||
| arguments: the credential object. This may be obtained from individual auth providers under `firebase.auth()`; | ||
| Authenticates the client using a credential (potentially created from OAuth tokens). This function | ||
| takes a single argument: the credential object. This may be obtained from individual auth providers |
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.
This sentence doesn't really help me understand how to create a credential object and I think it's going to be easy to miss that firebase.auth() refers to the underlying SDK.
Sadly, there doesn't seem to be a good example in the auth guide or the api reference to help clear this up. So maybe ignore unless you have ideas.
docs/reference.md
Outdated
| data about the signed-in user. If unsuccessful, the promise will be rejected with an `Error` object. | ||
|
|
||
| Firebase currently supports Facebook, GitHub, Google, and Twitter authentication. Refer to | ||
| Firebase currently supports Facebook, GitHub, Google, and Twitter authentication. Refer to the |
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.
Firebase currently supports Facebook, GitHub, Google, and Twitter identity providers for use with $signInWithCredential. (We support other authentication methods: email/password, anonymous, and custom)
|
lgtm ☃ |
Description
Clarifies and adds additional examples to the reference docs for
$signInWithPopup()and$signInWithRedirect().Closes #894.
Code sample
N/A