Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
This repository was archived by the owner on May 19, 2025. It is now read-only.

Invalid argument passed to createFireBaseAccount from Mobile App endpoint #5

Description

@noenthu

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions