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

Invalid argument passed to createFireBaseAccount from Mobile App endpoint #5

Open
noenthu opened this issue Jan 26, 2017 · 0 comments

Comments

@noenthu
Copy link

noenthu commented Jan 26, 2017

Looks like in app.js line 142, we are passing the argument firebaseToken to the createFirebaseAccount function. This variable hasn't been created.

createFirebaseAccount(results.user.id, results.user.full_name,
        results.user.profile_picture, firebaseToken).then(firebaseToken => {
      // Send the custom token, access token and profile data as a JSON object.
      res.send(firebaseToken);

Think this should be a variable containing the access_token returned from the token endpoint for instagram.

Likely missing a

const accessToken = results.access_token;

createFirebaseAccount(results.user.id, results.user.full_name,
        results.user.profile_picture, accessToken).then(firebaseToken => {
      // Send the custom token, access token and profile data as a JSON object.
      res.send(firebaseToken);
@noenthu noenthu changed the title Invalid argument passed to createFireBaseAccount method from Mobile App endpoint Invalid argument passed to createFireBaseAccount from Mobile App endpoint Jan 26, 2017
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

No branches or pull requests

1 participant