Skip to content
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

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

Open
wants to merge 7 commits into
base: v3
Choose a base branch
from

Conversation

abcd-ca
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.
@abcd-ca
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.

@abcd-ca
Copy link
Author

abcd-ca commented Feb 16, 2017 via email

@alexkendall
Copy link

+1

1 similar comment
@JackThomson2
Copy link

+1

@Salakar
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants