Skip to content

fix: remove hardcoded bearer - #1467

Merged
v-HarithaVattikuti merged 1 commit into
actions:mainfrom
marco-ippolito:fix-bearer-token
Feb 19, 2026
Merged

fix: remove hardcoded bearer#1467
v-HarithaVattikuti merged 1 commit into
actions:mainfrom
marco-ippolito:fix-bearer-token

Conversation

@marco-ippolito

@marco-ippolito marco-ippolito commented Jan 14, 2026

Copy link
Copy Markdown
Contributor

Followup of #1240

Description:
This change makes the mirror usable.
Right now Immagine we setup the value of mirror-token to foo.
In this line the value is used as

headers['Authorization'] = `Bearer ${this.nodeInfo.mirrorToken}`;

Bearer foo but in other places such as:

this.nodeInfo.mirrorToken

this.nodeInfo.mirrorToken

its used as is.

But if we change the value to Bearer foo,

headers['Authorization'] = `Bearer ${this.nodeInfo.mirrorToken}`;

here it becomes Bearer Bearer foo which is incorrect, but works everywhere else.

So this PR makes it that if its a Bearer, the user needs to be explicit.

Related issue:
Add link to the related issue.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@marco-ippolito
marco-ippolito requested a review from a team as a code owner January 14, 2026 16:01
Copilot AI review requested due to automatic review settings January 14, 2026 16:01
@marco-ippolito
marco-ippolito force-pushed the fix-bearer-token branch from 8088193 to 0e2c5c9 Compare