Skip to content

Bearer should be configure. #1914

@zhanghengxin

Description

@zhanghengxin

Describe the solution you'd like
A clear and concise description of what you want to happen. Ideally with a small example of the proposed changes.

The default method of adding Bearer without explicit configuration is really confusing. Unless there is a valid reason, I will submit a pull request to add a configuration option.

This is anti-human design.

if (isStringWithValue(token)) {
      headers["Authorization"] = `Bearer ${token}`;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions