Skip to content

[REQ][TypescriptAxios] want to use promise in apiKey when using Authenticate Server #5952

@tanmen

Description

@tanmen

When I used cognito(authenticate server), I found it difficult to use typescript-client.

Now

getApiToken().then(token => new PetApi(new Configuration({apiKey: token}))).then(api => api.getPets());

I hope to be

new PetApi(new Configuration({apiKey: getApiToken})).getPets();

Is your feature request related to a problem? Please describe.

N/A

Describe the solution you'd like

I want a Promise Type for apiKey.

Describe alternatives you've considered

#5953

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions