Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Corrections in docs, auth and database subscription bug fixes for iOS/Android #284

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

Open
abcd-ca wants to merge 7 commits into fullstackreact:v3
base: v3
Choose a base branch
Loading
from abcd-ca:v3

Conversation

Copy link

@abcd-ca abcd-ca commented Feb 8, 2017

A couple mistakes in the docs that I tracked down in terms of keys and values for credentials. I have facebook auth working in my app now as a result of these changes (I've verified)

A couple mistakes in the docs that I tracked down in terms of keys and values for credentials.
Changed from facebook and google to facebook.com and google.com respectively. This is needed for cross platform apps. These strings are now consistent with the [iOS](https://github.com/fullstackreact/react-native-firestack/blob/v3/ios/Firestack/FirestackAuth.m#L444) and [Web](https://firebase.google.com/docs/reference/js/firebase.auth.AuthCredential) code. Docs should be updated too. [Here's my pull request](https://github.com/fullstackreact/react-native-firestack/pull/284/files) for that.
Solution discovered by @TheNarie in [this issue](fullstackreact#282) except I also corrected `accessToken` from the original suggestion. Docs also updated about that in same pull request.
@abcd-ca abcd-ca changed the title (削除) Corrections in docs (削除ここまで) (追記) Corrections in docs and bug fixes (追記ここまで) Feb 13, 2017
The iOS and Android, `signInWithProvider` have different signatures. This works around that difference but ideally the native signatures should match each other (and the Web sdk's). Tested on iOS and Android.
needed for previous commit.
One of the needed parameters was named incorrectly – on Android this resulted in no data being retrieved. This fixes it.
Copy link
Author

abcd-ca commented Feb 13, 2017

created issue to reference this PR about ref.on('value'...) bug fix

@abcd-ca abcd-ca changed the title (削除) Corrections in docs and bug fixes (削除ここまで) (追記) Corrections in docs, auth and database subscription bug fixes for iOS/Android (追記ここまで) Feb 13, 2017
@@ -151,7 +151,12 @@ export default class Auth extends Base {
* @return {Promise} A promise resolved upon completion
*/
signInWithCredential(credential: any): Promise<Object> {
return promisify('signInWithProvider', FirestackAuth)(credential.provider, credential.accessToken, credential.secret);
signInWithCredential(credential: any): Promise<Object> {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abcd-ca This line is duplicated.

Copy link
Author

abcd-ca commented Feb 16, 2017 via email

Good catch, I fixed the duplicate line.
...
On Feb 16, 2017, at 5:35 AM, Victor Munene ***@***.***> wrote: @v1kku commented on this pull request. In lib/modules/auth/index.js <#284 (comment)>: > @@ -151,7 +151,12 @@ export default class Auth extends Base { * @return {Promise} A promise resolved upon completion */ signInWithCredential(credential: any): Promise<Object> { - return promisify('signInWithProvider', FirestackAuth)(credential.provider, credential.accessToken, credential.secret); + signInWithCredential(credential: any): Promise<Object> { @abcd-ca <https://github.com/abcd-ca> This line is duplicated. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#284 (review)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABPG5ysoPvPP0iQYRn6lsYVN6YEMlWUTks5rdFCtgaJpZM4L7SE_>.

Copy link

+1

1 similar comment
Copy link

+1

Copy link
Collaborator

Salakar commented Apr 7, 2017

@abcd-ca @alexkendall @JackThomson2 this repo has generally been abandoned, I think this issue and a ton of other issues were fixed in my v3 version of firestack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
1 more reviewer

@v1kku v1kku v1kku left review comments

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /