Skip to content

Cannot add JWT Bearer token to a form  #23

@gt-mj-1107

Description

@gt-mj-1107

Form options not taking into consideration, options passed
Sample Code:

const option = {
        headers: {
          Authorization: `Bearer ${jwtToken}`,
        },
        payload: {
          'content-type': 'multipart/form-data',
        },
      }

const form = formAutoContent(
        {
          file: fs.createReadStream(`./test/fixtures/test.txt`),
        },
        option,
      )

Rest API call never will get JWT as it's not passed to request

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions