Skip to content

Feature request: Consume API Key from environment variable #6

@Yann-P

Description

@Yann-P

Hello,

I am currently authenticating calls this way:

const api = new mergeAPI.CandidatesApi()
api.defaultHeaders = {
  Authorization: 'Bearer ' + process.env.MERGE_API_KEY,
}

const res = await api.candidatesList('TEST_ACCOUNT_TOKEN')
// ...

It would be handy if the SDK could directly consume an environment variable without having to configure the authentication at every API class insantiation

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