[GH-ISSUE #1225] Auth does not get passed into codegen #417

Closed
opened 2026-03-16 15:14:16 +03:00 by kerem · 0 comments
Owner

Originally created by @YasiOnFire on GitHub (Oct 4, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1225

Describe the bug
Since the codegenerator refactor See commit, the auth value does not get passed to the generator, and therefore the authorization headers are not shown in any of the generators.

To Reproduce
Steps to reproduce the behavior:

  1. Pull latest repo version or open any of latest deploy previews i.e.
  2. Add any authorization
  3. Click on Show Code
  4. Auth header is not generated since it's undefined in this context

Expected behavior
Authorization headers are shown in the generated code

Additional context
I will make a PR for this. Stand by.

Originally created by @YasiOnFire on GitHub (Oct 4, 2020). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1225 **Describe the bug** Since the codegenerator refactor [See commit](https://github.com/hoppscotch/hoppscotch/commit/ee066d7859da2c840cbaba63741b5faebdbf5df5#diff-b19fa22add3de9cd0b98b05366479d92R1793), the auth value does not get passed to the generator, and therefore the authorization headers are not shown in any of the generators. **To Reproduce** Steps to reproduce the behavior: 1. Pull latest repo version or open any of latest deploy previews [i.e.](https://5f78c73272d00900088789da--hoppscotch.netlify.app/) 2. Add any authorization 3. Click on Show Code 4. Auth header is not generated since it's undefined in this context **Expected behavior** Authorization headers are shown in the generated code **Additional context** I will make a PR for this. Stand by.
kerem closed this issue 2026-03-16 15:14:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#417
No description provided.